Merge "docs: adds genesisreq to docs merge job targets"
[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         - opnfv-jump-2:
39             <<: *master
40         - ericsson-pod1:
41             <<: *master
42         - ericsson-pod2:
43             <<: *master
44         - virtual:
45             <<: *master
46 #--------------------------------
47 #       scenarios
48 #--------------------------------
49     scenario:
50         # HA scenarios
51         - 'os-odl_l2-nofeature-ha':
52             auto-trigger-name: 'fuel-{scenario}-{pod}-{stream}-trigger'
53         - 'os-odl_l3-nofeature-ha':
54             auto-trigger-name: 'fuel-{scenario}-{pod}-{stream}-trigger'
55         - 'os-onos-nofeature-ha':
56             auto-trigger-name: 'fuel-{scenario}-{pod}-{stream}-trigger'
57         - 'os-nosdn-kvm-ha':
58             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
59         - 'os-nosdn-ovs-ha':
60             auto-trigger-name: 'fuel-{scenario}-{pod}-{stream}-trigger'
61         - 'os-nosdn-nofeature-ha':
62             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
63         - 'os-odl_l2-bgpvpn-ha':
64             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
65         - 'os-odl_l2-sfc-ha':
66             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
67         - 'os-nosdn-kvm_ovs-ha':
68             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
69         - 'os-nosdn-vlan-ha':
70             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
71         # NOHA scenarios
72         - 'os-odl_l2-nofeature-noha':
73             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
74         - 'os-odl_l3-nofeature-noha':
75             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
76         - 'os-onos-nofeature-noha':
77             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
78         - 'os-nosdn-nofeature-noha':
79             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
80         - 'os-nosdn-kvm-noha':
81             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
82         - 'os-nosdn-kvm_ovs-noha':
83             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
84         - 'os-nosdn-ovs-noha':
85             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
86         - 'os-odl_l2-bgpvpn-noha':
87             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
88         - 'os-odl_l2-sfc-noha':
89             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
90
91     jobs:
92         - 'fuel-{scenario}-{pod}-daily-{stream}'
93         - 'fuel-deploy-{pod}-daily-{stream}'
94
95 ########################
96 # job templates
97 ########################
98 - job-template:
99     name: 'fuel-{scenario}-{pod}-daily-{stream}'
100
101     concurrent: false
102
103     properties:
104         - throttle:
105             enabled: true
106             max-total: 1
107             max-per-node: 1
108         - build-blocker:
109             use-build-blocker: true
110             blocking-jobs:
111                 - 'fuel-os-.*?-{pod}-daily-{stream}'
112             block-level: 'NODE'
113
114     wrappers:
115         - build-name:
116             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
117
118     triggers:
119         - '{auto-trigger-name}'
120
121     parameters:
122         - project-parameter:
123             project: '{project}'
124         - '{installer}-defaults'
125         - '{pod}-defaults':
126             installer: '{installer}'
127         - string:
128             name: DEPLOY_SCENARIO
129             default: '{scenario}'
130         - fuel-ci-parameter:
131             gs-pathname: '{gs-pathname}'
132
133     builders:
134         - trigger-builds:
135             - project: 'fuel-deploy-{pod}-daily-{stream}'
136               current-parameters: false
137               predefined-parameters:
138                 DEPLOY_SCENARIO={scenario}
139               same-node: true
140               block: true
141         - trigger-builds:
142             - project: 'yardstick-fuel-{pod}-daily-{stream}'
143               current-parameters: false
144               predefined-parameters:
145                 DEPLOY_SCENARIO={scenario}
146               same-node: true
147               block: true
148               block-thresholds:
149                 build-step-failure-threshold: 'never'
150                 failure-threshold: 'never'
151                 unstable-threshold: 'FAILURE'
152         - trigger-builds:
153             - project: 'functest-fuel-{pod}-daily-{stream}'
154               current-parameters: false
155               predefined-parameters:
156                 DEPLOY_SCENARIO={scenario}
157               block: true
158               same-node: true
159               block-thresholds:
160                 build-step-failure-threshold: 'never'
161                 failure-threshold: 'never'
162                 unstable-threshold: 'FAILURE'
163
164 - job-template:
165     name: 'fuel-deploy-{pod}-daily-{stream}'
166
167     concurrent: false
168
169     properties:
170         - throttle:
171             enabled: true
172             max-total: 1
173             max-per-node: 1
174         - build-blocker:
175             use-build-blocker: true
176             blocking-jobs:
177                 - 'fuel-deploy-{pod}-daily-{stream}'
178                 - 'fuel-deploy-generic-daily-.*'
179             block-level: 'NODE'
180
181     parameters:
182         - project-parameter:
183             project: '{project}'
184         - '{installer}-defaults'
185         - '{pod}-defaults':
186             installer: '{installer}'
187         - string:
188             name: DEPLOY_SCENARIO
189             default: 'os-odl_l2-nofeature-ha'
190         - fuel-ci-parameter:
191             gs-pathname: '{gs-pathname}'
192
193     scm:
194         - git-scm:
195             credentials-id: '{ssh-credentials}'
196             refspec: ''
197             branch: '{branch}'
198
199     wrappers:
200         - build-name:
201             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
202
203     builders:
204         - shell:
205             !include-raw-escape: ./fuel-download-artifact.sh
206         - shell:
207             !include-raw-escape: ./fuel-deploy.sh
208
209     publishers:
210         - email:
211             recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com
212
213 ########################
214 # parameter macros
215 ########################
216 - parameter:
217     name: fuel-ci-parameter
218     parameters:
219         - string:
220             name: BUILD_DIRECTORY
221             default: $WORKSPACE/build_output
222             description: "Directory where the build artifact will be located upon the completion of the build."
223         - string:
224             name: CACHE_DIRECTORY
225             default: $HOME/opnfv/cache/$INSTALLER_TYPE
226             description: "Directory where the cache to be used during the build is located."
227         - string:
228             name: GS_URL
229             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
230             description: "URL to Google Storage."
231 ########################
232 # trigger macros
233 ########################
234 # os-nosdn-nofeature-ha trigger
235 - trigger:
236     name: 'fuel-os-nosdn-nofeature-ha-opnfv-jump-2-master-trigger'
237     triggers:
238         - timed: ''
239 - trigger:
240     name: 'fuel-os-nosdn-nofeature-ha-ericsson-pod1-master-trigger'
241     triggers:
242         - timed: ''
243 - trigger:
244     name: 'fuel-os-nosdn-nofeature-ha-ericsson-pod2-master-trigger'
245     triggers:
246         - timed: ''
247 - trigger:
248     name: 'fuel-os-nosdn-nofeature-ha-virtual-master-trigger'
249     triggers:
250         - timed: ''
251 - trigger:
252     name: 'fuel-os-nosdn-nofeature-ha-opnfv-jump-2-brahmaputra-trigger'
253     triggers:
254         - timed: ''
255 - trigger:
256     name: 'fuel-os-nosdn-nofeature-ha-ericsson-pod1-brahmaputra-trigger'
257     triggers:
258         - timed: ''
259 - trigger:
260     name: 'fuel-os-nosdn-nofeature-ha-ericsson-pod2-brahmaputra-trigger'
261     triggers:
262         - timed: ''
263 - trigger:
264     name: 'fuel-os-nosdn-nofeature-ha-virtual-brahmaputra-trigger'
265     triggers:
266         - timed: ''
267
268 # os-nosdn-kvm-ha trigger
269 - trigger:
270     name: 'fuel-os-nosdn-kvm-ha-opnfv-jump-2-master-trigger'
271     triggers:
272         - timed: ''
273 - trigger:
274     name: 'fuel-os-nosdn-kvm-ha-ericsson-pod1-master-trigger'
275     triggers:
276         - timed: ''
277 - trigger:
278     name: 'fuel-os-nosdn-kvm-ha-ericsson-pod2-master-trigger'
279     triggers:
280         - timed: ''
281 - trigger:
282     name: 'fuel-os-nosdn-kvm-ha-virtual-master-trigger'
283     triggers:
284         - timed: ''
285 - trigger:
286     name: 'fuel-os-nosdn-kvm-ha-opnfv-jump-2-brahmaputra-trigger'
287     triggers:
288         - timed: ''
289 - trigger:
290     name: 'fuel-os-nosdn-kvm-ha-ericsson-pod1-brahmaputra-trigger'
291     triggers:
292         - timed: ''
293 - trigger:
294     name: 'fuel-os-nosdn-kvm-ha-ericsson-pod2-brahmaputra-trigger'
295     triggers:
296         - timed: ''
297 - trigger:
298     name: 'fuel-os-nosdn-kvm-ha-virtual-brahmaputra-trigger'
299     triggers:
300         - timed: ''
301
302 # os-odl_l2-nofeature-ha trigger
303 - trigger:
304     name: 'fuel-os-odl_l2-nofeature-ha-opnfv-jump-2-master-trigger'
305     triggers:
306         - timed: ''
307 - trigger:
308     name: 'fuel-os-odl_l2-nofeature-ha-ericsson-pod1-master-trigger'
309     triggers:
310         - timed: ''
311 - trigger:
312     name: 'fuel-os-odl_l2-nofeature-ha-ericsson-pod2-master-trigger'
313     triggers:
314         - timed: ''
315 - trigger:
316     name: 'fuel-os-odl_l2-nofeature-ha-virtual-master-trigger'
317     triggers:
318         - timed: ''
319 - trigger:
320     name: 'fuel-os-odl_l2-nofeature-ha-opnfv-jump-2-brahmaputra-trigger'
321     triggers:
322         - timed: '0 4,10,16,22 * * *'
323 - trigger:
324     name: 'fuel-os-odl_l2-nofeature-ha-ericsson-pod1-brahmaputra-trigger'
325     triggers:
326         - timed: ''
327 - trigger:
328     name: 'fuel-os-odl_l2-nofeature-ha-ericsson-pod2-brahmaputra-trigger'
329     triggers:
330         - timed: '0 1,7,13,19 * * *'
331 - trigger:
332     name: 'fuel-os-odl_l2-nofeature-ha-virtual-brahmaputra-trigger'
333     triggers:
334         - timed: ''
335
336 # os-odl_l3-nofeature-ha trigger
337 - trigger:
338     name: 'fuel-os-odl_l3-nofeature-ha-opnfv-jump-2-master-trigger'
339     triggers:
340         - timed: ''
341 - trigger:
342     name: 'fuel-os-odl_l3-nofeature-ha-ericsson-pod1-master-trigger'
343     triggers:
344         - timed: ''
345 - trigger:
346     name: 'fuel-os-odl_l3-nofeature-ha-ericsson-pod2-master-trigger'
347     triggers:
348         - timed: ''
349 - trigger:
350     name: 'fuel-os-odl_l3-nofeature-ha-virtual-master-trigger'
351     triggers:
352         - timed: ''
353 - trigger:
354     name: 'fuel-os-odl_l3-nofeature-ha-opnfv-jump-2-brahmaputra-trigger'
355     triggers:
356         - timed: ''
357 - trigger:
358     name: 'fuel-os-odl_l3-nofeature-ha-ericsson-pod1-brahmaputra-trigger'
359     triggers:
360         - timed: ''
361 - trigger:
362     name: 'fuel-os-odl_l3-nofeature-ha-ericsson-pod2-brahmaputra-trigger'
363     triggers:
364         - timed: ''
365 - trigger:
366     name: 'fuel-os-odl_l3-nofeature-ha-virtual-brahmaputra-trigger'
367     triggers:
368         - timed: ''
369
370 # os-onos-nofeature-ha trigger
371 - trigger:
372     name: 'fuel-os-onos-nofeature-ha-opnfv-jump-2-master-trigger'
373     triggers:
374         - timed: ''
375 - trigger:
376     name: 'fuel-os-onos-nofeature-ha-ericsson-pod1-master-trigger'
377     triggers:
378         - timed: ''
379 - trigger:
380     name: 'fuel-os-onos-nofeature-ha-ericsson-pod2-master-trigger'
381     triggers:
382         - timed: ''
383 - trigger:
384     name: 'fuel-os-onos-nofeature-ha-virtual-master-trigger'
385     triggers:
386         - timed: ''
387 - trigger:
388     name: 'fuel-os-onos-nofeature-ha-opnfv-jump-2-brahmaputra-trigger'
389     triggers:
390         - timed: ''
391 - trigger:
392     name: 'fuel-os-onos-nofeature-ha-ericsson-pod1-brahmaputra-trigger'
393     triggers:
394         - timed: ''
395 - trigger:
396     name: 'fuel-os-onos-nofeature-ha-ericsson-pod2-brahmaputra-trigger'
397     triggers:
398         - timed: ''
399 - trigger:
400     name: 'fuel-os-onos-nofeature-ha-virtual-brahmaputra-trigger'
401     triggers:
402         - timed: ''
403
404
405 # os-nosdn-ovs-ha trigger
406 - trigger:
407     name: 'fuel-os-nosdn-ovs-ha-opnfv-jump-2-master-trigger'
408     triggers:
409         - timed: ''
410 - trigger:
411     name: 'fuel-os-nosdn-ovs-ha-ericsson-pod1-master-trigger'
412     triggers:
413         - timed: ''
414 - trigger:
415     name: 'fuel-os-nosdn-ovs-ha-ericsson-pod2-master-trigger'
416     triggers:
417         - timed: ''
418 - trigger:
419     name: 'fuel-os-nosdn-ovs-ha-virtual-master-trigger'
420     triggers:
421         - timed: ''
422 - trigger:
423     name: 'fuel-os-nosdn-ovs-ha-opnfv-jump-2-brahmaputra-trigger'
424     triggers:
425         - timed: ''
426 - trigger:
427     name: 'fuel-os-nosdn-ovs-ha-ericsson-pod1-brahmaputra-trigger'
428     triggers:
429         - timed: ''
430 - trigger:
431     name: 'fuel-os-nosdn-ovs-ha-ericsson-pod2-brahmaputra-trigger'
432     triggers:
433         - timed: '0 0,6,12,18 * * *'
434 - trigger:
435     name: 'fuel-os-nosdn-ovs-ha-virtual-brahmaputra-trigger'
436     triggers:
437         - timed: ''
438
439 # os-odl_l2-bgpvpn-ha trigger
440 - trigger:
441     name: 'fuel-os-odl_l2-bgpvpn-ha-opnfv-jump-2-master-trigger'
442     triggers:
443         - timed: ''
444 - trigger:
445     name: 'fuel-os-odl_l2-bgpvpn-ha-ericsson-pod1-master-trigger'
446     triggers:
447         - timed: ''
448 - trigger:
449     name: 'fuel-os-odl_l2-bgpvpn-ha-ericsson-pod2-master-trigger'
450     triggers:
451         - timed: ''
452 - trigger:
453     name: 'fuel-os-odl_l2-bgpvpn-ha-virtual-master-trigger'
454     triggers:
455         - timed: ''
456 - trigger:
457     name: 'fuel-os-odl_l2-bgpvpn-ha-opnfv-jump-2-brahmaputra-trigger'
458     triggers:
459         - timed: ''
460 - trigger:
461     name: 'fuel-os-odl_l2-bgpvpn-ha-ericsson-pod1-brahmaputra-trigger'
462     triggers:
463         - timed: ''
464 - trigger:
465     name: 'fuel-os-odl_l2-bgpvpn-ha-ericsson-pod2-brahmaputra-trigger'
466     triggers:
467         - timed: ''
468 - trigger:
469     name: 'fuel-os-odl_l2-bgpvpn-ha-virtual-brahmaputra-trigger'
470     triggers:
471         - timed: ''
472
473 # os-odl_l2-sfc-ha trigger
474 - trigger:
475     name: 'fuel-os-odl_l2-sfc-ha-opnfv-jump-2-master-trigger'
476     triggers:
477         - timed: ''
478 - trigger:
479     name: 'fuel-os-odl_l2-sfc-ha-ericsson-pod1-master-trigger'
480     triggers:
481         - timed: ''
482 - trigger:
483     name: 'fuel-os-odl_l2-sfc-ha-ericsson-pod2-master-trigger'
484     triggers:
485         - timed: ''
486 - trigger:
487     name: 'fuel-os-odl_l2-sfc-ha-virtual-master-trigger'
488     triggers:
489         - timed: ''
490 - trigger:
491     name: 'fuel-os-odl_l2-sfc-ha-opnfv-jump-2-brahmaputra-trigger'
492     triggers:
493         - timed: ''
494 - trigger:
495     name: 'fuel-os-odl_l2-sfc-ha-ericsson-pod1-brahmaputra-trigger'
496     triggers:
497         - timed: ''
498 - trigger:
499     name: 'fuel-os-odl_l2-sfc-ha-ericsson-pod2-brahmaputra-trigger'
500     triggers:
501         - timed: ''
502 - trigger:
503     name: 'fuel-os-odl_l2-sfc-ha-virtual-brahmaputra-trigger'
504     triggers:
505         - timed: ''
506
507 # os-nosdn-kvm-ha trigger
508 - trigger:
509     name: 'fuel-os-nosdn-kvm-noha-opnfv-jump-2-master-trigger'
510     triggers:
511         - timed: ''
512 - trigger:
513     name: 'fuel-os-nosdn-kvm-noha-ericsson-pod1-master-trigger'
514     triggers:
515         - timed: ''
516 - trigger:
517     name: 'fuel-os-nosdn-kvm-noha-ericsson-pod2-master-trigger'
518     triggers:
519         - timed: ''
520 - trigger:
521     name: 'fuel-os-nosdn-kvm-noha-virtual-master-trigger'
522     triggers:
523         - timed: ''
524 - trigger:
525     name: 'fuel-os-nosdn-kvm-noha-opnfv-jump-2-brahmaputra-trigger'
526     triggers:
527         - timed: ''
528 - trigger:
529     name: 'fuel-os-nosdn-kvm-noha-ericsson-pod1-brahmaputra-trigger'
530     triggers:
531         - timed: ''
532 - trigger:
533     name: 'fuel-os-nosdn-kvm-noha-ericsson-pod2-brahmaputra-trigger'
534     triggers:
535         - timed: ''
536 - trigger:
537     name: 'fuel-os-nosdn-kvm-noha-virtual-brahmaputra-trigger'
538     triggers:
539         - timed: ''