fuel: Switch PODs for branches
[releng.git] / jjb / fuel / fuel-ci-jobs.yml
1 # jenkins job templates for Fuel
2 - project:
3
4     name: 'fuel'
5
6     project: '{name}'
7
8     installer: '{name}'
9
10 #--------------------------------
11 # BRANCH ANCHORS
12 #--------------------------------
13     master: &master
14         stream: master
15         branch: '{stream}'
16         gs-pathname: ''
17     brahmaputra: &brahmaputra
18         stream: brahmaputra
19         branch: 'stable/{stream}'
20         gs-pathname: '/{stream}'
21 #--------------------------------
22 # POD, INSTALLER, AND BRANCH MAPPING
23 #--------------------------------
24 #        brahmaputra
25 #--------------------------------
26     pod:
27         - opnfv-jump-2:
28             <<: *brahmaputra
29         - ericsson-pod1:
30             <<: *brahmaputra
31         - ericsson-pod2:
32             <<: *brahmaputra
33         - virtual:
34             <<: *brahmaputra
35 #--------------------------------
36 #        master
37 #--------------------------------
38         - ericsson-pod1:
39             <<: *master
40         - ericsson-pod2:
41             <<: *master
42         - virtual:
43             <<: *master
44 #--------------------------------
45 #       scenarios
46 #--------------------------------
47     scenario:
48         # HA scenarios
49         - 'os-odl_l2-nofeature-ha':
50             auto-trigger-name: 'fuel-{scenario}-{pod}-{stream}-trigger'
51         - 'os-odl_l3-nofeature-ha':
52             auto-trigger-name: 'fuel-{scenario}-{pod}-{stream}-trigger'
53         - 'os-onos-nofeature-ha':
54             auto-trigger-name: 'fuel-{scenario}-{pod}-{stream}-trigger'
55         - 'os-nosdn-kvm-ha':
56             auto-trigger-name: 'fuel-{scenario}-{pod}-{stream}-trigger'
57         - 'os-nosdn-ovs-ha':
58             auto-trigger-name: 'fuel-{scenario}-{pod}-{stream}-trigger'
59         - 'os-nosdn-nofeature-ha':
60             auto-trigger-name: 'fuel-{scenario}-{pod}-{stream}-trigger'
61         - 'os-odl_l2-bgpvpn-ha':
62             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
63         - 'os-nosdn-kvm_ovs-ha':
64             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
65         - 'os-nosdn-vlan-ha':
66             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
67         # NOHA scenarios
68         - 'os-odl_l2-nofeature-noha':
69             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
70         - 'os-odl_l3-nofeature-noha':
71             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
72         - 'os-onos-nofeature-noha':
73             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
74         - 'os-nosdn-nofeature-noha':
75             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
76         - 'os-nosdn-kvm-noha':
77             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
78         - 'os-nosdn-kvm_ovs-noha':
79             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
80         - 'os-nosdn-ovs-noha':
81             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
82         - 'os-odl_l2-bgpvpn-noha':
83             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
84
85     jobs:
86         - 'fuel-{scenario}-{pod}-daily-{stream}'
87         - 'fuel-deploy-{pod}-daily-{stream}'
88
89 ########################
90 # job templates
91 ########################
92 - job-template:
93     name: 'fuel-{scenario}-{pod}-daily-{stream}'
94
95     concurrent: false
96
97     properties:
98         - throttle:
99             enabled: true
100             max-total: 1
101             max-per-node: 1
102         - build-blocker:
103             use-build-blocker: true
104             blocking-jobs:
105                 - 'fuel-os-.*?-{pod}-daily-{stream}'
106             block-level: 'NODE'
107
108     wrappers:
109         - build-name:
110             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
111
112     triggers:
113         - '{auto-trigger-name}'
114
115     parameters:
116         - project-parameter:
117             project: '{project}'
118         - '{installer}-defaults'
119         - '{pod}-defaults':
120             installer: '{installer}'
121         - string:
122             name: DEPLOY_SCENARIO
123             default: '{scenario}'
124         - fuel-ci-parameter:
125             gs-pathname: '{gs-pathname}'
126
127     builders:
128         - trigger-builds:
129             - project: 'fuel-deploy-{pod}-daily-{stream}'
130               current-parameters: false
131               predefined-parameters:
132                 DEPLOY_SCENARIO={scenario}
133               same-node: true
134               block: true
135         - trigger-builds:
136             - project: 'functest-fuel-{pod}-daily-{stream}'
137               current-parameters: false
138               predefined-parameters:
139                 DEPLOY_SCENARIO={scenario}
140               same-node: true
141               block: true
142               block-thresholds:
143                 build-step-failure-threshold: 'never'
144                 failure-threshold: 'never'
145                 unstable-threshold: 'FAILURE'
146         - trigger-builds:
147             - project: 'yardstick-fuel-{pod}-daily-{stream}'
148               current-parameters: false
149               predefined-parameters:
150                 DEPLOY_SCENARIO={scenario}
151               block: true
152               same-node: true
153               block-thresholds:
154                 build-step-failure-threshold: 'never'
155                 failure-threshold: 'never'
156                 unstable-threshold: 'FAILURE'
157
158 - job-template:
159     name: 'fuel-deploy-{pod}-daily-{stream}'
160
161     concurrent: false
162
163     properties:
164         - throttle:
165             enabled: true
166             max-total: 1
167             max-per-node: 1
168         - build-blocker:
169             use-build-blocker: true
170             blocking-jobs:
171                 - 'fuel-deploy-{pod}-daily-{stream}'
172                 - 'fuel-deploy-generic-daily-.*'
173             block-level: 'NODE'
174
175     parameters:
176         - project-parameter:
177             project: '{project}'
178         - '{installer}-defaults'
179         - '{pod}-defaults':
180             installer: '{installer}'
181         - string:
182             name: DEPLOY_SCENARIO
183             default: 'os-odl_l2-nofeature-ha'
184         - fuel-ci-parameter:
185             gs-pathname: '{gs-pathname}'
186
187     scm:
188         - git-scm:
189             credentials-id: '{ssh-credentials}'
190             refspec: ''
191             branch: '{branch}'
192
193     wrappers:
194         - build-name:
195             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
196
197     builders:
198         - shell:
199             !include-raw-escape: ./fuel-download-artifact.sh
200         - shell:
201             !include-raw-escape: ./fuel-deploy.sh
202
203     publishers:
204         - email:
205             recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com
206
207 ########################
208 # parameter macros
209 ########################
210 - parameter:
211     name: fuel-ci-parameter
212     parameters:
213         - string:
214             name: BUILD_DIRECTORY
215             default: $WORKSPACE/build_output
216             description: "Directory where the build artifact will be located upon the completion of the build."
217         - string:
218             name: CACHE_DIRECTORY
219             default: $HOME/opnfv/cache/$INSTALLER_TYPE
220             description: "Directory where the cache to be used during the build is located."
221         - string:
222             name: GS_URL
223             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
224             description: "URL to Google Storage."
225 ########################
226 # trigger macros
227 ########################
228 # os-nosdn-nofeature-ha trigger
229 - trigger:
230     name: 'fuel-os-nosdn-nofeature-ha-opnfv-jump-2-master-trigger'
231     triggers:
232         - timed: '0 2 * * *'
233 - trigger:
234     name: 'fuel-os-nosdn-nofeature-ha-ericsson-pod1-master-trigger'
235     triggers:
236         - timed: ''
237 - trigger:
238     name: 'fuel-os-nosdn-nofeature-ha-ericsson-pod2-master-trigger'
239     triggers:
240         - timed: ''
241 - trigger:
242     name: 'fuel-os-nosdn-nofeature-ha-virtual-master-trigger'
243     triggers:
244         - timed: ''
245 - trigger:
246     name: 'fuel-os-nosdn-nofeature-ha-opnfv-jump-2-brahmaputra-trigger'
247     triggers:
248         - timed: ''
249 - trigger:
250     name: 'fuel-os-nosdn-nofeature-ha-ericsson-pod1-brahmaputra-trigger'
251     triggers:
252         - timed: ''
253 - trigger:
254     name: 'fuel-os-nosdn-nofeature-ha-ericsson-pod2-brahmaputra-trigger'
255     triggers:
256         - timed: '0 2 * * *'
257 - trigger:
258     name: 'fuel-os-nosdn-nofeature-ha-virtual-brahmaputra-trigger'
259     triggers:
260         - timed: ''
261
262 # os-nosdn-kvm-ha trigger
263 - trigger:
264     name: 'fuel-os-nosdn-kvm-ha-opnfv-jump-2-master-trigger'
265     triggers:
266         - timed: '0 6 * * *'
267 - trigger:
268     name: 'fuel-os-nosdn-kvm-ha-ericsson-pod1-master-trigger'
269     triggers:
270         - timed: ''
271 - trigger:
272     name: 'fuel-os-nosdn-kvm-ha-ericsson-pod2-master-trigger'
273     triggers:
274         - timed: ''
275 - trigger:
276     name: 'fuel-os-nosdn-kvm-ha-virtual-master-trigger'
277     triggers:
278         - timed: ''
279 - trigger:
280     name: 'fuel-os-nosdn-kvm-ha-opnfv-jump-2-brahmaputra-trigger'
281     triggers:
282         - timed: ''
283 - trigger:
284     name: 'fuel-os-nosdn-kvm-ha-ericsson-pod1-brahmaputra-trigger'
285     triggers:
286         - timed: ''
287 - trigger:
288     name: 'fuel-os-nosdn-kvm-ha-ericsson-pod2-brahmaputra-trigger'
289     triggers:
290         - timed: '0 6 * * *'
291 - trigger:
292     name: 'fuel-os-nosdn-kvm-ha-virtual-brahmaputra-trigger'
293     triggers:
294         - timed: ''
295
296 # os-odl_l2-nofeature-ha trigger
297 - trigger:
298     name: 'fuel-os-odl_l2-nofeature-ha-opnfv-jump-2-master-trigger'
299     triggers:
300         - timed: '0 10 * * *'
301 - trigger:
302     name: 'fuel-os-odl_l2-nofeature-ha-ericsson-pod1-master-trigger'
303     triggers:
304         - timed: ''
305 - trigger:
306     name: 'fuel-os-odl_l2-nofeature-ha-ericsson-pod2-master-trigger'
307     triggers:
308         - timed: ''
309 - trigger:
310     name: 'fuel-os-odl_l2-nofeature-ha-virtual-master-trigger'
311     triggers:
312         - timed: ''
313 - trigger:
314     name: 'fuel-os-odl_l2-nofeature-ha-opnfv-jump-2-brahmaputra-trigger'
315     triggers:
316         - timed: ''
317 - trigger:
318     name: 'fuel-os-odl_l2-nofeature-ha-ericsson-pod1-brahmaputra-trigger'
319     triggers:
320         - timed: ''
321 - trigger:
322     name: 'fuel-os-odl_l2-nofeature-ha-ericsson-pod2-brahmaputra-trigger'
323     triggers:
324         - timed: '0 10 * * *'
325 - trigger:
326     name: 'fuel-os-odl_l2-nofeature-ha-virtual-brahmaputra-trigger'
327     triggers:
328         - timed: ''
329
330 # os-odl_l3-nofeature-ha trigger
331 - trigger:
332     name: 'fuel-os-odl_l3-nofeature-ha-opnfv-jump-2-master-trigger'
333     triggers:
334         - timed: '0 14 * * *'
335 - trigger:
336     name: 'fuel-os-odl_l3-nofeature-ha-ericsson-pod1-master-trigger'
337     triggers:
338         - timed: ''
339 - trigger:
340     name: 'fuel-os-odl_l3-nofeature-ha-ericsson-pod2-master-trigger'
341     triggers:
342         - timed: ''
343 - trigger:
344     name: 'fuel-os-odl_l3-nofeature-ha-virtual-master-trigger'
345     triggers:
346         - timed: ''
347 - trigger:
348     name: 'fuel-os-odl_l3-nofeature-ha-opnfv-jump-2-brahmaputra-trigger'
349     triggers:
350         - timed: ''
351 - trigger:
352     name: 'fuel-os-odl_l3-nofeature-ha-ericsson-pod1-brahmaputra-trigger'
353     triggers:
354         - timed: ''
355 - trigger:
356     name: 'fuel-os-odl_l3-nofeature-ha-ericsson-pod2-brahmaputra-trigger'
357     triggers:
358         - timed: '0 14 * * *'
359 - trigger:
360     name: 'fuel-os-odl_l3-nofeature-ha-virtual-brahmaputra-trigger'
361     triggers:
362         - timed: ''
363
364 # os-onos-nofeature-ha trigger
365 - trigger:
366     name: 'fuel-os-onos-nofeature-ha-opnfv-jump-2-master-trigger'
367     triggers:
368         - timed: '0 18 * * *'
369 - trigger:
370     name: 'fuel-os-onos-nofeature-ha-ericsson-pod1-master-trigger'
371     triggers:
372         - timed: ''
373 - trigger:
374     name: 'fuel-os-onos-nofeature-ha-ericsson-pod2-master-trigger'
375     triggers:
376         - timed: ''
377 - trigger:
378     name: 'fuel-os-onos-nofeature-ha-virtual-master-trigger'
379     triggers:
380         - timed: ''
381 - trigger:
382     name: 'fuel-os-onos-nofeature-ha-opnfv-jump-2-brahmaputra-trigger'
383     triggers:
384         - timed: ''
385 - trigger:
386     name: 'fuel-os-onos-nofeature-ha-ericsson-pod1-brahmaputra-trigger'
387     triggers:
388         - timed: ''
389 - trigger:
390     name: 'fuel-os-onos-nofeature-ha-ericsson-pod2-brahmaputra-trigger'
391     triggers:
392         - timed: '0 18 * * *'
393 - trigger:
394     name: 'fuel-os-onos-nofeature-ha-virtual-brahmaputra-trigger'
395     triggers:
396         - timed: ''
397
398
399 # os-nosdn-ovs-ha trigger
400 - trigger:
401     name: 'fuel-os-nosdn-ovs-ha-opnfv-jump-2-master-trigger'
402     triggers:
403         - timed: '0 22 * * *'
404 - trigger:
405     name: 'fuel-os-nosdn-ovs-ha-ericsson-pod1-master-trigger'
406     triggers:
407         - timed: ''
408 - trigger:
409     name: 'fuel-os-nosdn-ovs-ha-ericsson-pod2-master-trigger'
410     triggers:
411         - timed: ''
412 - trigger:
413     name: 'fuel-os-nosdn-ovs-ha-virtual-master-trigger'
414     triggers:
415         - timed: ''
416 - trigger:
417     name: 'fuel-os-nosdn-ovs-ha-opnfv-jump-2-brahmaputra-trigger'
418     triggers:
419         - timed: ''
420 - trigger:
421     name: 'fuel-os-nosdn-ovs-ha-ericsson-pod1-brahmaputra-trigger'
422     triggers:
423         - timed: ''
424 - trigger:
425     name: 'fuel-os-nosdn-ovs-ha-ericsson-pod2-brahmaputra-trigger'
426     triggers:
427         - timed: '0 22 * * *'
428 - trigger:
429     name: 'fuel-os-nosdn-ovs-ha-virtual-brahmaputra-trigger'
430     triggers:
431         - timed: ''