Merge "jjb: infra: bifrost-verify: Add links to Jenkins jobs"
[releng.git] / jjb / multisite / multisite-daily-jobs.yml
1 - project:
2     name: kingbird
3
4     project: 'multisite'
5
6     jobs:
7         - 'multisite-kingbird-virtual-daily-{stream}'
8         - 'multisite-{phase}-{stream}'
9
10     phase:
11         - 'fuel-deploy-regionone-virtual':
12             slave-label: 'ericsson-virtual12'
13         - 'fuel-deploy-regiontwo-virtual':
14             slave-label: 'ericsson-virtual13'
15         - 'register-endpoints':
16             slave-label: 'ericsson-virtual12'
17         - 'update-auth':
18             slave-label: 'ericsson-virtual13'
19         - 'kingbird-deploy-virtual':
20             slave-label: 'ericsson-virtual12'
21         - 'kingbird-functest':
22             slave-label: 'ericsson-virtual12'
23
24     stream:
25         - master:
26             branch: '{stream}'
27             gs-pathname: ''
28             disabled: false
29             timed: '#@midnight'
30
31 - job-template:
32     name: 'multisite-kingbird-virtual-daily-{stream}'
33
34     project-type: multijob
35
36     disabled: '{obj:disabled}'
37
38     concurrent: false
39
40     parameters:
41         - project-parameter:
42             project: '{project}'
43         - string:
44             name: KINGBIRD_LOG_FILE
45             default: $WORKSPACE/kingbird.log
46         - 'opnfv-build-defaults'
47
48     triggers:
49          - timed: '{timed}'
50
51     builders:
52         - description-setter:
53             description: "Built on $NODE_NAME"
54         - multijob:
55             name: fuel-deploy-virtual
56             condition: SUCCESSFUL
57             projects:
58                 - name: 'multisite-fuel-deploy-regionone-virtual-{stream}'
59                   current-parameters: false
60                   predefined-parameters: |
61                     FUEL_VERSION=latest
62                     DEPLOY_SCENARIO=os-nosdn-nofeature-noha
63                     OS_REGION=RegionOne
64                     REGIONONE_IP=100.64.209.10
65                     REGIONTWO_IP=100.64.209.11
66                   node-parameters: false
67                   node-label-name: SLAVE_LABEL
68                   node-label: ericsson-virtual12
69                   kill-phase-on: FAILURE
70                   abort-all-job: true
71                 - name: 'multisite-fuel-deploy-regiontwo-virtual-{stream}'
72                   current-parameters: false
73                   predefined-parameters: |
74                     FUEL_VERSION=latest
75                     DEPLOY_SCENARIO=os-nosdn-nofeature-noha
76                     OS_REGION=RegionTwo
77                     REGIONONE_IP=100.64.209.10
78                     REGIONTWO_IP=100.64.209.11
79                   node-parameters: false
80                   node-label-name: SLAVE_LABEL
81                   node-label: ericsson-virtual13
82                   kill-phase-on: FAILURE
83                   abort-all-job: true
84         - multijob:
85             name: centralize-keystone
86             condition: SUCCESSFUL
87             projects:
88                 - name: 'multisite-register-endpoints-{stream}'
89                   current-parameters: false
90                   predefined-parameters: |
91                     OS_REGION=RegionOne
92                     REGIONONE_IP=100.64.209.10
93                     REGIONTWO_IP=100.64.209.11
94                   node-parameters: false
95                   node-label-name: SLAVE_LABEL
96                   node-label: ericsson-virtual12
97                   kill-phase-on: FAILURE
98                   abort-all-job: true
99                 - name: 'multisite-update-auth-{stream}'
100                   current-parameters: false
101                   predefined-parameters: |
102                     OS_REGION=RegionTwo
103                     REGIONONE_IP=100.64.209.10
104                     REGIONTWO_IP=100.64.209.11
105                   node-parameters: false
106                   node-label-name: SLAVE_LABEL
107                   node-label: ericsson-virtual13
108                   kill-phase-on: FAILURE
109                   abort-all-job: true
110         - multijob:
111             name: kingbird-deploy-virtual
112             condition: SUCCESSFUL
113             projects:
114                 - name: 'multisite-kingbird-deploy-virtual-{stream}'
115                   current-parameters: false
116                   predefined-parameters: |
117                     OS_REGION=RegionOne
118                     REGIONONE_IP=100.64.209.10
119                     REGIONTWO_IP=100.64.209.11
120                   node-parameters: false
121                   node-label-name: SLAVE_LABEL
122                   node-label: ericsson-virtual12
123                   kill-phase-on: FAILURE
124                   abort-all-job: true
125         - multijob:
126             name: kingbird-functest
127             condition: SUCCESSFUL
128             projects:
129                 - name: 'multisite-kingbird-functest-{stream}'
130                   current-parameters: false
131                   predefined-parameters: |
132                     DEPLOY_SCENARIO='os-nosdn-multisite-noha'
133                     OS_REGION=RegionOne
134                     REGIONONE_IP=100.64.209.10
135                     REGIONTWO_IP=100.64.209.11
136                   node-parameters: false
137                   node-label-name: SLAVE_LABEL
138                   node-label: ericsson-virtual12
139                   kill-phase-on: NEVER
140                   abort-all-job: false
141
142 - job-template:
143     name: 'multisite-{phase}-{stream}'
144
145     concurrent: false
146
147     disabled: '{obj:disabled}'
148
149     concurrent: false
150
151     parameters:
152         - project-parameter:
153             project: '{project}'
154         - string:
155             name: KINGBIRD_LOG_FILE
156             default: $WORKSPACE/kingbird.log
157         - '{slave-label}-defaults'
158
159     builders:
160         - description-setter:
161             description: "Built on $NODE_NAME"
162         - 'multisite-{phase}-builder':
163             stream: '{stream}'
164
165     publishers:
166         - 'multisite-{phase}-publisher'
167
168 ########################
169 # builder macros
170 ########################
171 - builder:
172     name: 'multisite-fuel-deploy-regionone-virtual-builder'
173     builders:
174         - shell: |
175             #!/bin/bash
176
177             echo "This is where we deploy fuel, extract passwords and save into file"
178 - builder:
179     name: 'multisite-fuel-deploy-regiontwo-virtual-builder'
180     builders:
181         - shell: |
182             #!/bin/bash
183
184             echo "This is where we deploy fuel, extract publicUrl, privateUrl, and adminUrl and save into file"
185 - builder:
186     name: 'multisite-register-endpoints-builder'
187     builders:
188         - copyartifact:
189             project: 'multisite-fuel-deploy-regiontwo-virtual-{stream}'
190             which-build: multijob-build
191             filter: "RegionTwo-Endpoints.txt"
192         - shell: |
193             #!/bin/bash
194
195             echo "This is where we register RegionTwo in RegionOne keystone"
196 - builder:
197     name: 'multisite-update-auth-builder'
198     builders:
199         - copyartifact:
200             project: 'multisite-fuel-deploy-regionone-virtual-{stream}'
201             which-build: multijob-build
202             filter: "RegionOne-Passwords.txt"
203         - shell: |
204             #!/bin/bash
205
206             echo "This is where we read passwords from RegionOne-passwords.txt and replace passwords in RegionTwo"
207 - builder:
208     name: 'multisite-kingbird-deploy-virtual-builder'
209     builders:
210         - shell: |
211             #!/bin/bash
212
213             echo "This is where we install kingbird"
214 - builder:
215     name: 'multisite-kingbird-functest-builder'
216     builders:
217         - shell: |
218             #!/bin/bash
219
220             echo "This is where we run kingbird-functest"
221 ########################
222 # publisher macros
223 ########################
224 - publisher:
225     name: 'multisite-fuel-deploy-regionone-virtual-publisher'
226     publishers:
227         - archive:
228             artifacts: '/root/servicepass.ini'
229             allow-empty: false
230             only-if-success: true
231             fingerprint: true
232 - publisher:
233     name: 'multisite-fuel-deploy-regiontwo-virtual-publisher'
234     publishers:
235         - archive:
236             artifacts: '/root/endpoints.ini'
237             allow-empty: false
238             only-if-success: true
239             fingerprint: true
240 - publisher:
241     name: 'multisite-register-endpoints-publisher'
242     publishers:
243         - archive:
244             artifacts: 'dummy.txt'
245             allow-empty: true
246 - publisher:
247     name: 'multisite-update-auth-publisher'
248     publishers:
249         - archive:
250             artifacts: 'dummy.txt'
251             allow-empty: true
252 - publisher:
253     name: 'multisite-kingbird-deploy-virtual-publisher'
254     publishers:
255         - archive:
256             artifacts: 'dummy.txt'
257             allow-empty: true
258 - publisher:
259     name: 'multisite-kingbird-functest-publisher'
260     publishers:
261         - archive:
262             artifacts: 'dummy.txt'
263             allow-empty: true