-
Notifications
You must be signed in to change notification settings - Fork 2
/
jenkins.yaml
104 lines (103 loc) · 2.54 KB
/
jenkins.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
jenkins:
agentProtocols:
- "JNLP4-connect"
- "Ping"
authorizationStrategy: "loggedInUsersCanDoAnything"
disableRememberMe: false
markupFormatter: "plainText"
mode: NORMAL
myViewsTabBar: "standard"
numExecutors: 2
primaryView:
all:
name: "all"
projectNamingStrategy: "standard"
quietPeriod: 5
remotingSecurity:
enabled: false
scmCheckoutRetryCount: 0
securityRealm:
local:
allowsSignup: false
enableCaptcha: false
users:
- id: "admin"
password: ${jenkins_password:-xebialabs}
tool:
dockerTool:
installations:
- name: "docker"
properties:
- installSource:
installers:
- docker:
version: "latest"
git:
installations:
- home: "git"
name: "Default"
maven:
installations:
- name: "maven3"
properties:
- installSource:
installers:
- maven:
id: "3.5.0"
jobs:
- script: >
folder('Cool Store') {
displayName('Cool Store')
description('XebiaLabs DevOps Pack for Jenkins demo')
}
- script: >
multibranchPipelineJob('Cool Store/Address book') {
branchSources {
git {
remote('https://github.com/xebialabs/demo-address-book.git')
credentialsId('github-credentials')
}
}
}
- script: >
multibranchPipelineJob('Cool Store/Shopping cart') {
branchSources {
git {
remote('https://github.com/xebialabs/demo-shopping-cart.git')
credentialsId('github-credentials')
}
}
}
- script: >
multibranchPipelineJob('Cool Store/Wish list') {
branchSources {
git {
remote('https://github.com/xebialabs/demo-wish-list.git')
credentialsId('github-credentials')
}
}
}
credentials:
system:
domainCredentials:
- credentials:
- usernamePassword:
scope: GLOBAL
id: xld
username: admin
password: ${xld_password:-admin}
- usernamePassword:
scope: GLOBAL
id: xlr
username: admin
password: ${xlr_password:-admin}
- usernamePassword:
id: gogs
password: xebialabs
scope: GLOBAL
username: ${gogs_password:-xebialabs}
- usernamePassword:
id: artifactory
password: ${artifactory_password:-admin123}
scope: GLOBAL
username: admin