Merge "Create Stable Branch Jobs for doctor"
[releng.git] / jjb / apex / apex.yaml
1 ---
2 - project:
3     name: 'apex'
4     project: 'apex'
5     jobs:
6       - 'apex-fetch-logs-{stream}'
7       - 'apex-runner-cperf-{stream}'
8       - 'apex-virtual-{stream}'
9       - 'apex-deploy-{platform}-{stream}'
10       - 'apex-daily-{stream}'
11       - 'apex-csit-promote-daily-{stream}-os-{os_version}-{topology}'
12       - 'apex-fdio-promote-daily-{stream}'
13       - 'apex-{scenario}-baremetal-{scenario_stream}'
14       - 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
15       - 'apex-upload-snapshot'
16       - 'apex-create-snapshot'
17       - 'apex-fetch-snap-info'
18       - 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
19       - 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
20     # stream:    branch with - in place of / (eg. stable-arno)
21     # branch:    branch (eg. stable/arno)
22     stream:
23       - master: &master
24           branch: 'master'
25           gs-pathname: ''
26           build-slave: 'apex-build-master'
27           virtual-slave: 'apex-virtual-master'
28           baremetal-slave: 'apex-baremetal-master'
29           verify-scenario: 'os-nosdn-nofeature-noha'
30           scenario_stream: 'master'
31           disable_daily: false
32           disable_promote: false
33       - gambia: &gambia
34           branch: 'stable/gambia'
35           gs-pathname: '/gambia'
36           build-slave: 'apex-build-master'
37           virtual-slave: 'apex-virtual-master'
38           baremetal-slave: 'apex-baremetal-master'
39           verify-scenario: 'os-nosdn-nofeature-ha'
40           scenario_stream: 'gambia'
41           disable_daily: false
42           disable_promote: false
43       - fraser: &fraser
44           branch: 'stable/fraser'
45           gs-pathname: '/fraser'
46           build-slave: 'apex-build-master'
47           virtual-slave: 'apex-virtual-master'
48           baremetal-slave: 'apex-baremetal-master'
49           verify-scenario: 'os-nosdn-nofeature-ha'
50           scenario_stream: 'fraser'
51           disable_daily: false
52           disable_promote: true
53       - euphrates: &euphrates
54           branch: 'stable/euphrates'
55           gs-pathname: '/euphrates'
56           build-slave: 'apex-build-master'
57           virtual-slave: 'apex-virtual-master'
58           baremetal-slave: 'apex-baremetal-master'
59           verify-scenario: 'os-odl-nofeature-ha'
60           scenario_stream: 'euphrates'
61           disable_daily: true
62           disable_promote: true
63       - danube: &danube
64           branch: 'stable/danube'
65           gs-pathname: '/danube'
66           build-slave: 'apex-build-danube'
67           virtual-slave: 'apex-virtual-danube'
68           baremetal-slave: 'apex-baremetal-danube'
69           verify-scenario: 'os-odl_l3-nofeature-ha'
70           scenario_stream: 'danube'
71           disabled: true
72           disable_daily: true
73           disable_promote: true
74
75     scenario:
76       - 'os-nosdn-nofeature-ha':
77           <<: *fraser
78       - 'os-odl-bgpvpn-ha':
79           <<: *fraser
80       - 'os-nosdn-nofeature-noha':
81           <<: *gambia
82       - 'os-nosdn-nofeature-ha':
83           <<: *gambia
84       - 'os-nosdn-nofeature-ha-ipv6':
85           <<: *gambia
86       - 'os-odl-nofeature-noha':
87           <<: *gambia
88       - 'os-odl-nofeature-ha':
89           <<: *gambia
90       - 'k8s-nosdn-nofeature-noha':
91           <<: *gambia
92       - 'os-odl-bgpvpn-ha':
93           <<: *gambia
94       - 'os-odl-bgpvpn-noha':
95           <<: *gambia
96       - 'os-odl-sfc-ha':
97           <<: *gambia
98       - 'os-odl-sfc-noha':
99           <<: *gambia
100       - 'os-nosdn-calipso-noha':
101           <<: *gambia
102       - 'os-ovn-nofeature-ha':
103           <<: *gambia
104       - 'os-nosdn-nofeature-noha':
105           <<: *danube
106       - 'os-nosdn-nofeature-ha':
107           <<: *danube
108       - 'os-nosdn-nofeature-ha-ipv6':
109           <<: *danube
110       - 'os-nosdn-ovs-noha':
111           <<: *danube
112       - 'os-nosdn-ovs-ha':
113           <<: *danube
114       - 'os-nosdn-fdio-noha':
115           <<: *danube
116       - 'os-nosdn-fdio-ha':
117           <<: *danube
118       - 'os-nosdn-kvm-ha':
119           <<: *danube
120       - 'os-nosdn-kvm-noha':
121           <<: *danube
122       - 'os-odl_l2-fdio-noha':
123           <<: *danube
124       - 'os-odl_l2-fdio-ha':
125           <<: *danube
126       - 'os-odl_netvirt-fdio-noha':
127           <<: *danube
128       - 'os-odl_l2-sfc-noha':
129           <<: *danube
130       - 'os-odl_l3-nofeature-noha':
131           <<: *danube
132       - 'os-odl_l3-nofeature-ha':
133           <<: *danube
134       - 'os-odl_l3-ovs-noha':
135           <<: *danube
136       - 'os-odl_l3-ovs-ha':
137           <<: *danube
138       - 'os-odl-bgpvpn-ha':
139           <<: *danube
140       - 'os-odl-gluon-noha':
141           <<: *danube
142       - 'os-odl_l3-fdio-noha':
143           <<: *danube
144       - 'os-odl_l3-fdio-ha':
145           <<: *danube
146       - 'os-odl_l3-fdio_dvr-noha':
147           <<: *danube
148       - 'os-odl_l3-fdio_dvr-ha':
149           <<: *danube
150       - 'os-odl_l3-csit-noha':
151           <<: *danube
152       - 'os-onos-nofeature-ha':
153           <<: *danube
154       - 'os-ovn-nofeature-noha':
155           <<: *danube
156       - 'os-nosdn-nofeature-noha':
157           <<: *master
158       - 'os-nosdn-nofeature-ha':
159           <<: *master
160       - 'os-nosdn-nofeature-ha-ipv6':
161           <<: *master
162       - 'os-odl-nofeature-noha':
163           <<: *master
164       - 'os-odl-nofeature-ha':
165           <<: *master
166       - 'os-nosdn-rocky-noha':
167           <<: *master
168       - 'os-nosdn-rocky-ha':
169           <<: *master
170       - 'os-nosdn-rocky-ha-ipv6':
171           <<: *master
172       - 'os-odl-rocky-noha':
173           <<: *master
174       - 'os-odl-rocky-ha':
175           <<: *master
176       - 'k8s-nosdn-nofeature-noha':
177           <<: *master
178       - 'os-odl-bgpvpn-ha':
179           <<: *master
180       - 'os-odl-bgpvpn-noha':
181           <<: *master
182       - 'os-odl-bgpvpn_queens-ha':
183           <<: *master
184       - 'os-odl-bgpvpn_queens-noha':
185           <<: *master
186       - 'os-odl-sfc-ha':
187           <<: *master
188       - 'os-odl-sfc-noha':
189           <<: *master
190       - 'os-odl-sfc_rocky-ha':
191           <<: *master
192       - 'os-odl-sfc_rocky-noha':
193           <<: *master
194       - 'os-nosdn-calipso-noha':
195           <<: *master
196       - 'os-nosdn-calipso_rocky-noha':
197           <<: *master
198       - 'os-ovn-nofeature-ha':
199           <<: *master
200       - 'os-ovn-rocky-ha':
201           <<: *master
202       - 'os-nosdn-nofeature-noha':
203           <<: *euphrates
204       - 'os-nosdn-nofeature-ha':
205           <<: *euphrates
206       - 'os-odl-nofeature-ha':
207           <<: *euphrates
208       - 'os-odl-nofeature-noha':
209           <<: *euphrates
210       - 'os-odl-bgpvpn-ha':
211           <<: *euphrates
212       - 'os-ovn-nofeature-noha':
213           <<: *euphrates
214       - 'os-nosdn-fdio-noha':
215           <<: *euphrates
216       - 'os-nosdn-fdio-ha':
217           <<: *euphrates
218       - 'os-nosdn-bar-ha':
219           <<: *euphrates
220       - 'os-nosdn-bar-noha':
221           <<: *euphrates
222       - 'os-nosdn-nofeature-ha-ipv6':
223           <<: *euphrates
224       - 'os-nosdn-ovs_dpdk-noha':
225           <<: *euphrates
226       - 'os-nosdn-ovs_dpdk-ha':
227           <<: *euphrates
228       - 'os-nosdn-kvm_ovs_dpdk-noha':
229           <<: *euphrates
230       - 'os-nosdn-kvm_ovs_dpdk-ha':
231           <<: *euphrates
232       - 'os-odl-sfc-noha':
233           <<: *euphrates
234       - 'os-odl-sfc-ha':
235           <<: *euphrates
236
237     platform:
238       - 'baremetal'
239       - 'virtual'
240
241     os_version:
242       - 'queens':
243           os_scenario: 'nofeature'
244           odl_branch: 'stable/oxygen'
245       - 'rocky':
246           os_scenario: 'rocky'
247           odl_branch: 'stable/oxygen'
248       - 'master':
249           os_scenario: 'nofeature'
250           odl_branch: 'stable/fluorine'
251
252     topology:
253       - 'noha'
254       - 'ha'
255       - 'noha-allinone'
256
257 # Fetch Logs Job
258 - job-template:
259     name: 'apex-fetch-logs-{stream}'
260
261     concurrent: true
262
263     disabled: false
264     scm:
265       - git-scm-gerrit
266     parameters:
267       - project-parameter:
268           project: '{project}'
269           branch: '{branch}'
270       - apex-parameter:
271           gs-pathname: '{gs-pathname}'
272     # yamllint enable rule:line-length
273     properties:
274       - logrotate-default
275       - throttle:
276           max-per-node: 1
277           max-total: 10
278           option: 'project'
279
280     builders:
281       - 'apex-fetch-logs'
282
283 - job-template:
284     name: 'apex-runner-cperf-{stream}'
285
286     # runner cperf job
287     project-type: 'multijob'
288     node: 'intel-pod2'
289
290     disabled: false
291
292     parameters:
293       - apex-parameter:
294           gs-pathname: '{gs-pathname}'
295       - project-parameter:
296           project: '{project}'
297           branch: '{branch}'
298       - string:
299           name: GIT_BASE
300           default: https://gerrit.opnfv.org/gerrit/$PROJECT
301           description: "Used for overriding the GIT URL coming from parameters macro."
302
303     scm:
304       - git-scm
305
306     properties:
307       - logrotate-default
308       - build-blocker:
309           use-build-blocker: false
310           blocking-level: 'NODE'
311           blocking-jobs:
312             - 'apex-deploy.*'
313       - throttle:
314           max-per-node: 1
315           max-total: 10
316           option: 'project'
317
318     builders:
319       - description-setter:
320           description: "Deployed on $NODE_NAME"
321       - multijob:
322           name: 'Baremetal Deploy'
323           condition: ALWAYS
324           projects:
325             - name: 'apex-deploy-baremetal-{stream}'
326               node-parameters: false
327               current-parameters: true
328               predefined-parameters: |
329                 GERRIT_BRANCH=$GERRIT_BRANCH
330                 GERRIT_REFSPEC=
331                 OPNFV_CLEAN=yes
332                 DEPLOY_SCENARIO={verify-scenario}
333               kill-phase-on: FAILURE
334               abort-all-job: true
335               git-revision: false
336       - multijob:
337           name: CPERF
338           condition: SUCCESSFUL
339           projects:
340             - name: 'cperf-apex-intel-pod2-daily-master'
341               node-parameters: true
342               current-parameters: false
343               predefined-parameters:
344                 DEPLOY_SCENARIO={verify-scenario}
345               kill-phase-on: NEVER
346               abort-all-job: false
347               git-revision: false
348
349 # Deploy job
350 - job-template:
351     name: 'apex-deploy-{platform}-{stream}'
352
353     concurrent: true
354
355     disabled: false
356     quiet-period: 30
357     scm:
358       - git-scm-gerrit
359
360     wrappers:
361       - timeout:
362           timeout: 140
363           fail: true
364
365     parameters:
366       - '{project}-{platform}-{stream}-defaults'
367       - project-parameter:
368           project: '{project}'
369           branch: '{branch}'
370       - apex-parameter:
371           gs-pathname: '{gs-pathname}'
372       - string:
373           name: DEPLOY_SCENARIO
374           default: '{verify-scenario}'
375           description: "Scenario to deploy with."
376       # yamllint disable rule:line-length
377       - string:
378           name: OPNFV_CLEAN
379           default: 'no'
380           description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
381
382     # yamllint enable rule:line-length
383     properties:
384       - logrotate-default
385       - build-blocker:
386           use-build-blocker: true
387           blocking-level: 'NODE'
388           blocking-jobs:
389             - 'apex-deploy.*'
390             - 'functest.*'
391             - 'yardstick.*'
392             - 'dovetail.*'
393             - 'storperf.*'
394             - 'odl-netvirt.*'
395       - throttle:
396           max-per-node: 1
397           max-total: 10
398           option: 'project'
399
400     builders:
401       - description-setter:
402           description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
403       - 'apex-download-artifact'
404       - 'apex-deploy'
405       - 'clean-workspace'
406
407
408 # Virtual Deploy and Test
409 - job-template:
410     name: 'apex-virtual-{stream}'
411
412     project-type: 'multijob'
413
414     concurrent: true
415
416     disabled: false
417
418     scm:
419       - git-scm-gerrit
420
421     parameters:
422       - '{project}-defaults'
423       - '{project}-virtual-{stream}-defaults'
424       - 'functest-suite-parameter'
425       - project-parameter:
426           project: '{project}'
427           branch: '{branch}'
428       - apex-parameter:
429           gs-pathname: '{gs-pathname}'
430       - string:
431           name: DEPLOY_SCENARIO
432           default: '{verify-scenario}'
433           description: "Scenario to deploy with."
434       - string:
435           name: ARTIFACT_VERSION
436           default: dev
437           description: "Used for overriding the ARTIFACT_VERSION"
438
439     properties:
440       - logrotate-default
441       - build-blocker:
442           use-build-blocker: true
443           blocking-level: 'NODE'
444           blocking-jobs:
445             - 'apex-runner.*'
446             - 'apex-run.*'
447             - 'apex-virtual-.*'
448             - 'apex-verify-gate-.*'
449             - 'odl-netvirt.*'
450             - 'apex-.*-promote.*'
451       - throttle:
452           max-per-node: 1
453           max-total: 10
454           option: 'project'
455
456     builders:
457       - description-setter:
458           description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
459       - multijob:
460           name: deploy-virtual
461           condition: SUCCESSFUL
462           projects:
463             - name: 'apex-deploy-virtual-{stream}'
464               current-parameters: false
465               predefined-parameters: |
466                 ARTIFACT_VERSION=$ARTIFACT_VERSION
467                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
468                 OPNFV_CLEAN=yes
469                 GERRIT_BRANCH=$GERRIT_BRANCH
470                 GERRIT_REFSPEC=$GERRIT_REFSPEC
471                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
472                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
473                 PROMOTE=$PROMOTE
474               node-parameters: true
475               kill-phase-on: FAILURE
476               abort-all-job: true
477               git-revision: true
478       - shell: |
479           if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
480           echo 'REPO=opnfv' > functest_repo
481           else
482           echo 'REPO=ollivier' > functest_repo
483           fi
484       - inject:
485           properties-file: functest_repo
486       - multijob:
487           name: functest-smoke
488           condition: ALWAYS
489           projects:
490             - name: 'functest-apex-virtual-suite-{stream}'
491               current-parameters: false
492               predefined-parameters: |
493                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
494                 FUNCTEST_MODE=$FUNCTEST_MODE
495                 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
496                 REPO=$REPO
497                 GERRIT_BRANCH=$GERRIT_BRANCH
498                 GERRIT_REFSPEC=$GERRIT_REFSPEC
499                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
500                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
501               node-parameters: true
502               kill-phase-on: NEVER
503               abort-all-job: true
504               git-revision: false
505       - multijob:
506           name: apex-fetch-logs
507           projects:
508             - name: 'apex-fetch-logs-{stream}'
509               current-parameters: false
510               predefined-parameters: |
511                 GERRIT_BRANCH=$GERRIT_BRANCH
512                 GERRIT_REFSPEC=$GERRIT_REFSPEC
513                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
514                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
515               node-parameters: true
516               kill-phase-on: NEVER
517               abort-all-job: true
518               git-revision: false
519
520 # Baremetal Deploy and Test
521 - job-template:
522     name: 'apex-{scenario}-baremetal-{scenario_stream}'
523
524     project-type: 'multijob'
525
526     disabled: false
527
528     scm:
529       - git-scm
530
531     parameters:
532       - '{project}-defaults'
533       - '{project}-baremetal-{scenario_stream}-defaults'
534       - project-parameter:
535           project: '{project}'
536           branch: '{branch}'
537       - apex-parameter:
538           gs-pathname: '{gs-pathname}'
539       - string:
540           name: DEPLOY_SCENARIO
541           default: '{scenario}'
542           description: "Scenario to deploy with."
543
544     properties:
545       - logrotate-default
546       - build-blocker:
547           use-build-blocker: true
548           blocking-level: 'NODE'
549           blocking-jobs:
550             - 'apex-verify.*'
551             - 'apex-runner.*'
552             - 'apex-.*-promote.*'
553             - 'apex-run.*'
554             - 'apex-.+-baremetal-.+'
555       - throttle:
556           max-per-node: 1
557           max-total: 10
558           option: 'project'
559
560     builders:
561       - description-setter:
562           description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
563       - multijob:
564           name: 'Baremetal Deploy'
565           condition: SUCCESSFUL
566           execution-type: SEQUENTIALLY
567           projects:
568             - name: 'apex-deploy-baremetal-{scenario_stream}'
569               node-parameters: true
570               current-parameters: true
571               predefined-parameters: |
572                 OPNFV_CLEAN=yes
573                 GERRIT_BRANCH=$GERRIT_BRANCH
574                 GERRIT_REFSPEC=
575                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
576               kill-phase-on: NEVER
577               abort-all-job: true
578               git-revision: false
579             - name: 'apex-fetch-logs-{scenario_stream}'
580               current-parameters: true
581               predefined-parameters: |
582                 GERRIT_BRANCH=$GERRIT_BRANCH
583                 GERRIT_REFSPEC=
584               node-parameters: true
585               kill-phase-on: NEVER
586               abort-all-job: true
587               git-revision: false
588       - shell: |
589           if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
590             echo 'REPO=opnfv' > functest_properties
591           else
592             echo 'REPO=ollivier' > functest_properties
593           fi
594           features=$(echo $DEPLOY_SCENARIO | sed -r -n 's/os-.+-(.+)-(noha|ha)/\1/p')
595           if [ "$features" == 'queens' ]; then
596             functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-queens-(noha|ha)/\1-nofeature-\2/p')
597           elif [[ "$features" =~ 'queens' ]]; then
598             functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-(.+)_queens-(noha|ha)/\1-\2-\3/p')
599           else
600             functest_scenario=$DEPLOY_SCENARIO
601           fi
602           echo "DEPLOY_SCENARIO=$functest_scenario" >> functest_properties
603       - inject:
604           properties-file: functest_properties
605           override-build-parameters: true
606       - multijob:
607           name: 'OPNFV Test Suite'
608           condition: ALWAYS
609           projects:
610             - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
611               node-parameters: true
612               current-parameters: false
613               predefined-parameters:
614                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
615               kill-phase-on: NEVER
616               abort-all-job: true
617               git-revision: false
618       - multijob:
619           name: apex-fetch-logs
620           projects:
621             - name: 'apex-fetch-logs-{scenario_stream}'
622               current-parameters: true
623               predefined-parameters: |
624                 GERRIT_BRANCH=$GERRIT_BRANCH
625                 GERRIT_REFSPEC=
626               node-parameters: true
627               kill-phase-on: NEVER
628               abort-all-job: true
629               git-revision: false
630     publishers:
631       - groovy-postbuild:
632           script:
633             !include-raw-escape: ./update-build-result.groovy
634
635 # Baremetal test job
636 - job-template:
637     name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
638
639     project-type: 'multijob'
640
641     disabled: false
642
643     parameters:
644       - '{project}-defaults'
645       - '{project}-baremetal-{scenario_stream}-defaults'
646       - project-parameter:
647           project: '{project}'
648           branch: '{branch}'
649       - apex-parameter:
650           gs-pathname: '{gs-pathname}'
651       - string:
652           name: DEPLOY_SCENARIO
653           default: '{scenario}'
654           description: "Scenario to deploy with."
655
656     properties:
657       - logrotate-default
658       - build-blocker:
659           use-build-blocker: true
660           blocking-level: 'NODE'
661           blocking-jobs:
662             - 'apex-verify.*'
663             - 'apex-runner.*'
664             - 'apex-run.*'
665             - 'apex-testsuite-.+-baremetal-.+'
666       - throttle:
667           max-per-node: 1
668           max-total: 10
669           option: 'project'
670
671     builders:
672       - description-setter:
673           description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
674       - multijob:
675           name: Functest
676           condition: ALWAYS
677           projects:
678             - name: 'functest-apex-baremetal-daily-{scenario_stream}'
679               node-parameters: true
680               current-parameters: false
681               predefined-parameters:
682                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
683               kill-phase-on: NEVER
684               abort-all-job: false
685               git-revision: false
686       - multijob:
687           name: Yardstick
688           condition: ALWAYS
689           projects:
690             - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
691               node-parameters: true
692               current-parameters: false
693               predefined-parameters:
694                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
695               kill-phase-on: NEVER
696               abort-all-job: false
697               git-revision: false
698       - multijob:
699           name: Dovetail-proposed_tests
700           condition: ALWAYS
701           projects:
702             - name: 'dovetail-apex-baremetal-default-mandatory-{scenario_stream}'
703               node-parameters: true
704               current-parameters: false
705               predefined-parameters:
706                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
707               kill-phase-on: NEVER
708               enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
709               abort-all-job: false
710               git-revision: false
711       - multijob:
712           name: Dovetail-default
713           condition: ALWAYS
714           projects:
715             - name: 'dovetail-apex-baremetal-default-optional-{scenario_stream}'
716               node-parameters: true
717               current-parameters: false
718               predefined-parameters:
719                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
720               kill-phase-on: NEVER
721               enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
722               abort-all-job: false
723               git-revision: false
724       - multijob:
725           name: StorPerf
726           condition: ALWAYS
727           projects:
728             - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
729               node-parameters: true
730               current-parameters: false
731               predefined-parameters:
732                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
733               enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
734               kill-phase-on: NEVER
735               abort-all-job: false
736               git-revision: false
737 # Build status is always success due conditional plugin prefetching
738 # build status before multijob phases execute
739 #        - conditional-step:
740 #            condition-kind: current-status
741 #            condition-worst: SUCCESS
742 #            condtion-best: SUCCESS
743 #            on-evaluation-failure: mark-unstable
744 #            steps:
745 #                - shell: 'echo "Tests Passed"'
746
747 - job-template:
748     name: 'apex-daily-{stream}'
749
750     # Job template for daily build
751     #
752     # Required Variables:
753     #     stream:    branch with - in place of / (eg. stable)
754     #     branch:    branch (eg. stable)
755     project-type: 'multijob'
756
757     disabled: '{obj:disable_daily}'
758
759     scm:
760       - git-scm
761
762     parameters:
763       - '{project}-defaults'
764       - '{project}-baremetal-{stream}-defaults'
765       - project-parameter:
766           project: '{project}'
767           branch: '{branch}'
768       - apex-parameter:
769           gs-pathname: '{gs-pathname}'
770
771     properties:
772       - logrotate-default
773       - build-blocker:
774           use-build-blocker: true
775           blocking-level: 'NODE'
776           blocking-jobs:
777             - 'apex-daily.*'
778
779     triggers:
780       - 'apex-{stream}'
781
782     builders:
783       - multijob:
784           name: build
785           condition: SUCCESSFUL
786           projects:
787             - name: 'apex-build-{stream}'
788               current-parameters: false
789               predefined-parameters: |
790                 GERRIT_BRANCH=$GERRIT_BRANCH
791                 GERRIT_REFSPEC=
792                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
793                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
794               node-parameters: true
795               kill-phase-on: FAILURE
796               abort-all-job: true
797               git-revision: true
798       - multijob:
799           name: 'Verify and upload ISO'
800           condition: SUCCESSFUL
801           projects:
802             - name: 'apex-verify-iso-{stream}'
803               current-parameters: false
804               predefined-parameters: |
805                 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
806                 GERRIT_BRANCH=$GERRIT_BRANCH
807                 GERRIT_REFSPEC=
808                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
809                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
810               node-parameters: true
811               kill-phase-on: FAILURE
812               abort-all-job: true
813               git-revision: true
814       - apex-builder-{stream}
815
816 # snapshot info fetch
817 - job-template:
818     name: 'apex-fetch-snap-info'
819
820     disabled: false
821
822     parameters:
823       - '{project}-defaults'
824
825     builders:
826       - shell:
827           !include-raw-escape: ./apex-fetch-snap-info.sh
828
829 # snapshot create
830 - job-template:
831     name: 'apex-create-snapshot'
832
833     disabled: false
834
835     parameters:
836       - '{project}-defaults'
837
838     builders:
839       - shell:
840           !include-raw-escape: ./apex-snapshot-create.sh
841
842 # snapshot upload
843 - job-template:
844     name: 'apex-upload-snapshot'
845
846     disabled: false
847
848     parameters:
849       - '{project}-defaults'
850
851     builders:
852       - inject:
853           properties-content: ARTIFACT_TYPE=snapshot
854       - 'apex-upload-artifact'
855
856 # CSIT promote
857 - job-template:
858     name: 'apex-csit-promote-daily-{stream}-os-{os_version}-{topology}'
859
860     # Job template for promoting CSIT Snapshots
861     #
862     # Required Variables:
863     #     stream:    branch with - in place of / (eg. stable)
864     #     branch:    branch (eg. stable)
865     node: '{virtual-slave}'
866     project-type: 'multijob'
867     disabled: '{disable_promote}'
868
869     scm:
870       - git-scm
871
872     parameters:
873       - project-parameter:
874           project: '{project}'
875           branch: '{branch}'
876       - apex-parameter:
877           gs-pathname: '{gs-pathname}'
878       - string:
879           name: ARTIFACT_VERSION
880           default: dev
881           description: "Used for overriding the ARTIFACT_VERSION"
882       - string:
883           name: PROMOTE
884           default: 'True'
885           description: "Used for overriding the PROMOTE"
886       - string:
887           name: GS_URL
888           default: $GS_BASE{gs-pathname}/{os_version}/{topology}
889           description: "User for overriding GS_URL from apex params"
890       - string:
891           name: OS_VERSION
892           default: '{os_version}'
893           description: OpenStack version short name
894       - string:
895           name: ODL_BRANCH
896           default: '{odl_branch}'
897           description: ODL branch being used
898
899     properties:
900       - build-blocker:
901           use-build-blocker: true
902           blocking-level: 'NODE'
903           blocking-jobs:
904             - 'apex-verify.*'
905             - 'apex-runner.*'
906             - 'apex-daily.*'
907             - 'apex-csit-promote.*'
908             - 'odl-netvirt.*'
909       - throttle:
910           max-per-node: 1
911           max-total: 10
912           option: 'project'
913
914     triggers:
915       - '{stream}-{os_version}'
916
917     builders:
918       - multijob:
919           name: apex-virtual-deploy
920           condition: SUCCESSFUL
921           projects:
922             - name: 'apex-deploy-virtual-{stream}'
923               current-parameters: true
924               predefined-parameters: |
925                 DEPLOY_SCENARIO=os-odl-{os_scenario}-{topology}
926                 OPNFV_CLEAN=yes
927                 GERRIT_BRANCH=$GERRIT_BRANCH
928                 GERRIT_REFSPEC=$GERRIT_REFSPEC
929                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
930                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
931               node-parameters: true
932               kill-phase-on: FAILURE
933               abort-all-job: true
934               git-revision: true
935       - multijob:
936           name: fetch snapshot info
937           condition: SUCCESSFUL
938           projects:
939             - name: 'apex-fetch-snap-info'
940               current-parameters: true
941               node-parameters: true
942               kill-phase-on: FAILURE
943               abort-all-job: true
944               git-revision: false
945       - multijob:
946           name: csit
947           condition: SUCCESSFUL
948           execution-type: SEQUENTIALLY
949           projects:
950             - name: cperf-apex-csit-master
951               predefined-parameters: |
952                 ODL_BRANCH=$ODL_BRANCH
953                 RC_FILE_PATH=/tmp/csit/overcloudrc
954                 NODE_FILE_PATH=/tmp/csit/node.yaml
955                 SSH_KEY_PATH=/tmp/csit/id_rsa
956                 ODL_CONTAINERIZED=true
957                 OS_VERSION=$OS_VERSION
958               node-parameters: true
959               kill-phase-on: NEVER
960               abort-all-job: false
961             - name: cperf-upload-logs-csit
962               predefined-parameters: |
963                 ODL_BRANCH=$ODL_BRANCH
964                 OS_VERSION=$OS_VERSION
965               node-parameters: true
966               kill-phase-on: FAILURE
967               abort-all-job: false
968             - name: 'apex-fetch-logs-{stream}'
969               current-parameters: false
970               predefined-parameters: |
971                 GERRIT_BRANCH=$GERRIT_BRANCH
972                 GERRIT_REFSPEC=$GERRIT_REFSPEC
973                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
974                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
975               node-parameters: true
976               kill-phase-on: NEVER
977               abort-all-job: true
978               git-revision: false
979       - multijob:
980           name: create snapshot
981           condition: SUCCESSFUL
982           projects:
983             - name: 'apex-create-snapshot'
984               current-parameters: true
985               predefined-parameters: |
986                 SNAP_TYPE=csit
987               node-parameters: true
988               kill-phase-on: FAILURE
989               abort-all-job: true
990               git-revision: false
991       - multijob:
992           name: upload snapshot
993           condition: SUCCESSFUL
994           projects:
995             - name: 'apex-upload-snapshot'
996               current-parameters: true
997               predefined-parameters: |
998                 SNAP_TYPE=csit
999               node-parameters: true
1000               kill-phase-on: FAILURE
1001               abort-all-job: true
1002               git-revision: false
1003
1004 # FDIO promote
1005 - job-template:
1006     name: 'apex-fdio-promote-daily-{stream}'
1007
1008     # Job template for promoting CSIT Snapshots
1009     #
1010     # Required Variables:
1011     #     stream:    branch with - in place of / (eg. stable)
1012     #     branch:    branch (eg. stable)
1013     node: '{virtual-slave}'
1014     project-type: 'multijob'
1015     disabled: false
1016
1017     scm:
1018       - git-scm
1019
1020     parameters:
1021       - project-parameter:
1022           project: '{project}'
1023           branch: '{branch}'
1024       - apex-parameter:
1025           gs-pathname: '{gs-pathname}'
1026
1027     properties:
1028       - build-blocker:
1029           use-build-blocker: true
1030           blocking-level: 'NODE'
1031           blocking-jobs:
1032             - 'apex-verify.*'
1033             - 'apex-deploy.*'
1034             - 'apex-runner.*'
1035             - 'apex-daily.*'
1036
1037     builders:
1038       - multijob:
1039           name: build
1040           condition: SUCCESSFUL
1041           projects:
1042             - name: 'apex-build-{stream}'
1043               current-parameters: false
1044               predefined-parameters: |
1045                 GERRIT_BRANCH=$GERRIT_BRANCH
1046                 GERRIT_REFSPEC=$GERRIT_REFSPEC
1047                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1048                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1049               node-parameters: false
1050               kill-phase-on: FAILURE
1051               abort-all-job: true
1052               git-revision: true
1053       - multijob:
1054           name: deploy-virtual
1055           condition: SUCCESSFUL
1056           projects:
1057             - name: 'apex-deploy-virtual-{stream}'
1058               current-parameters: false
1059               predefined-parameters: |
1060                 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
1061                 OPNFV_CLEAN=yes
1062                 GERRIT_BRANCH=$GERRIT_BRANCH
1063                 GERRIT_REFSPEC=$GERRIT_REFSPEC
1064                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1065                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1066                 PROMOTE=True
1067               node-parameters: true
1068               kill-phase-on: FAILURE
1069               abort-all-job: true
1070               git-revision: false
1071       - multijob:
1072           name: create snapshot
1073           condition: SUCCESSFUL
1074           projects:
1075             - name: 'apex-create-snapshot'
1076               current-parameters: false
1077               predefined-parameters: |
1078                 SNAP_TYPE=fdio
1079               node-parameters: true
1080               kill-phase-on: FAILURE
1081               abort-all-job: true
1082               git-revision: false
1083       - multijob:
1084           name: upload snapshot
1085           condition: SUCCESSFUL
1086           projects:
1087             - name: 'apex-upload-snapshot'
1088               current-parameters: false
1089               predefined-parameters: |
1090                 SNAP_TYPE=fdio
1091               node-parameters: true
1092               kill-phase-on: FAILURE
1093               abort-all-job: true
1094               git-revision: false
1095
1096 # Flex job
1097 - job-template:
1098     name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
1099
1100     project-type: 'multijob'
1101
1102     disabled: false
1103
1104     node: 'flex-pod2'
1105
1106     scm:
1107       - git-scm
1108
1109     triggers:
1110       - 'apex-{stream}'
1111
1112     parameters:
1113       - '{project}-defaults'
1114       - project-parameter:
1115           project: '{project}'
1116           branch: '{branch}'
1117       - apex-parameter:
1118           gs-pathname: '{gs-pathname}'
1119       - string:
1120           name: DEPLOY_SCENARIO
1121           default: 'os-nosdn-nofeature-ha'
1122           description: "Scenario to deploy with."
1123       - string:
1124           name: GIT_BASE
1125           default: https://gerrit.opnfv.org/gerrit/$PROJECT
1126           description: 'Git URL to use on this Jenkins Slave'
1127       - string:
1128           name: SSH_KEY
1129           default: /root/.ssh/id_rsa
1130           description: 'SSH key to use for Apex'
1131
1132     properties:
1133       - logrotate-default
1134       - build-blocker:
1135           use-build-blocker: true
1136           blocking-level: 'NODE'
1137           blocking-jobs:
1138             - 'apex-verify.*'
1139             - 'apex-runner.*'
1140             - 'apex-.*-promote.*'
1141             - 'apex-run.*'
1142             - 'apex-.+-baremetal-.+'
1143       - throttle:
1144           max-per-node: 1
1145           max-total: 10
1146           option: 'project'
1147
1148     builders:
1149       - description-setter:
1150           description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
1151       - multijob:
1152           name: 'Baremetal Deploy'
1153           condition: SUCCESSFUL
1154           projects:
1155             - name: 'apex-deploy-baremetal-{stream}'
1156               node-parameters: true
1157               current-parameters: true
1158               predefined-parameters: |
1159                 OPNFV_CLEAN=yes
1160                 GERRIT_BRANCH=$GERRIT_BRANCH
1161                 GERRIT_REFSPEC=
1162                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1163               kill-phase-on: FAILURE
1164               abort-all-job: true
1165               git-revision: false
1166       - multijob:
1167           name: Yardstick
1168           condition: ALWAYS
1169           projects:
1170             - name: 'yardstick-apex-baremetal-daily-{stream}'
1171               node-parameters: true
1172               current-parameters: false
1173               predefined-parameters:
1174                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1175               kill-phase-on: NEVER
1176               abort-all-job: false
1177               git-revision: false
1178
1179 # Dovetail Danube test job
1180 - job-template:
1181     name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
1182
1183     project-type: 'multijob'
1184
1185     node: 'huawei-pod4'
1186
1187     disabled: false
1188
1189     parameters:
1190       - '{project}-defaults'
1191       - project-parameter:
1192           project: '{project}'
1193           branch: 'stable/danube'
1194       - apex-parameter:
1195           gs-pathname: '/danube'
1196       - string:
1197           name: DEPLOY_SCENARIO
1198           default: 'os-nosdn-nofeature-ha'
1199           description: "Scenario to deploy with."
1200
1201     properties:
1202       - logrotate-default
1203       - build-blocker:
1204           use-build-blocker: true
1205           blocking-level: 'NODE'
1206           blocking-jobs:
1207             - 'apex-verify.*'
1208             - 'apex-runner.*'
1209             - 'apex-.*-promote.*'
1210             - 'apex-run.*'
1211
1212     triggers:
1213       - timed: ''  # '0 1 * * *'
1214
1215     builders:
1216       - description-setter:
1217           description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
1218       - multijob:
1219           name: 'Baremetal Deploy'
1220           condition: SUCCESSFUL
1221           projects:
1222             - name: 'apex-deploy-baremetal-danube'
1223               node-parameters: true
1224               current-parameters: true
1225               predefined-parameters: |
1226                 OPNFV_CLEAN=yes
1227                 GERRIT_BRANCH=$GERRIT_BRANCH
1228                 GERRIT_REFSPEC=
1229                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1230               kill-phase-on: FAILURE
1231               abort-all-job: true
1232               git-revision: false
1233       - multijob:
1234           name: Dovetail
1235           condition: ALWAYS
1236           projects:
1237             - name: 'dovetail-apex-baremetal-proposed_tests-danube'
1238               node-parameters: true
1239               current-parameters: false
1240               predefined-parameters:
1241                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1242               kill-phase-on: NEVER
1243               abort-all-job: false
1244               git-revision: false
1245
1246 ########################
1247 # parameter macros
1248 ########################
1249 - parameter:
1250     name: apex-parameter
1251     parameters:
1252       - string:
1253           name: ARTIFACT_NAME
1254           default: 'latest'
1255           description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1256       - string:
1257           name: ARTIFACT_VERSION
1258           default: 'daily'
1259           description: "Artifact version type"
1260       - string:
1261           name: BUILD_DIRECTORY
1262           default: $WORKSPACE/.build
1263           description: "Directory where the build artifact will be located upon the completion of the build."
1264       - string:
1265           name: CACHE_DIRECTORY
1266           default: $HOME/opnfv/apex-cache{gs-pathname}
1267           description: "Directory where the cache to be used during the build is located."
1268       # yamllint disable rule:line-length
1269       - string:
1270           name: GIT_BASE
1271           default: https://gerrit.opnfv.org/gerrit/$PROJECT
1272           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1273       # yamllint enable rule:line-length
1274       - string:
1275           name: GS_PATHNAME
1276           default: '{gs-pathname}'
1277           description: "Version directory where opnfv artifacts are stored in gs repository"
1278       - string:
1279           name: GS_URL
1280           default: $GS_BASE{gs-pathname}
1281           description: "URL to Google Storage."
1282       - string:
1283           name: PROMOTE
1284           default: 'False'
1285           description: "Flag to know if we should promote/upload snapshot artifacts."
1286
1287 ########################
1288 # builder macros
1289 ########################
1290
1291 # fraser Builder
1292 - builder:
1293     name: apex-builder-fraser
1294     builders:
1295       - multijob:
1296           name: Baremetal Deploy and Test Phase
1297           condition: SUCCESSFUL
1298           projects:
1299             - name: 'apex-os-nosdn-nofeature-ha-baremetal-fraser'
1300               node-parameters: false
1301               current-parameters: false
1302               predefined-parameters: |
1303                 OPNFV_CLEAN=yes
1304               kill-phase-on: NEVER
1305               abort-all-job: true
1306               git-revision: false
1307             - name: 'apex-os-odl-bgpvpn-ha-baremetal-fraser'
1308               node-parameters: false
1309               current-parameters: false
1310               predefined-parameters: |
1311                 OPNFV_CLEAN=yes
1312               kill-phase-on: NEVER
1313               abort-all-job: true
1314               git-revision: false
1315
1316 # gambia Builder
1317 - builder:
1318     name: apex-builder-gambia
1319     builders:
1320       - multijob:
1321           name: Baremetal Deploy and Test Phase
1322           condition: SUCCESSFUL
1323           projects:
1324             - name: 'apex-os-nosdn-nofeature-noha-baremetal-gambia'
1325               node-parameters: false
1326               current-parameters: false
1327               predefined-parameters: |
1328                 OPNFV_CLEAN=yes
1329               kill-phase-on: NEVER
1330               abort-all-job: true
1331               git-revision: false
1332             - name: 'apex-os-nosdn-nofeature-ha-baremetal-gambia'
1333               node-parameters: false
1334               current-parameters: false
1335               predefined-parameters: |
1336                 OPNFV_CLEAN=yes
1337               kill-phase-on: NEVER
1338               abort-all-job: true
1339               git-revision: false
1340             - name: 'apex-os-nosdn-nofeature-ha-ipv6-baremetal-gambia'
1341               node-parameters: false
1342               current-parameters: false
1343               predefined-parameters: |
1344                 OPNFV_CLEAN=yes
1345               kill-phase-on: NEVER
1346               abort-all-job: true
1347               git-revision: false
1348             - name: 'apex-os-odl-nofeature-noha-baremetal-gambia'
1349               node-parameters: false
1350               current-parameters: false
1351               predefined-parameters: |
1352                 OPNFV_CLEAN=yes
1353               kill-phase-on: NEVER
1354               abort-all-job: true
1355               git-revision: false
1356             - name: 'apex-os-odl-nofeature-ha-baremetal-gambia'
1357               node-parameters: false
1358               current-parameters: false
1359               predefined-parameters: |
1360                 OPNFV_CLEAN=yes
1361               kill-phase-on: NEVER
1362               abort-all-job: true
1363               git-revision: false
1364             - name: 'apex-k8s-nosdn-nofeature-noha-baremetal-gambia'
1365               node-parameters: false
1366               current-parameters: false
1367               predefined-parameters: |
1368                 OPNFV_CLEAN=yes
1369               kill-phase-on: NEVER
1370               abort-all-job: true
1371               git-revision: false
1372             - name: 'apex-os-odl-bgpvpn-ha-baremetal-gambia'
1373               node-parameters: false
1374               current-parameters: false
1375               predefined-parameters: |
1376                 OPNFV_CLEAN=yes
1377               kill-phase-on: NEVER
1378               abort-all-job: true
1379               git-revision: false
1380             - name: 'apex-os-odl-bgpvpn-noha-baremetal-gambia'
1381               node-parameters: false
1382               current-parameters: false
1383               predefined-parameters: |
1384                 OPNFV_CLEAN=yes
1385               kill-phase-on: NEVER
1386               abort-all-job: true
1387               git-revision: false
1388             - name: 'apex-os-odl-sfc-ha-baremetal-gambia'
1389               node-parameters: false
1390               current-parameters: false
1391               predefined-parameters: |
1392                 OPNFV_CLEAN=yes
1393               kill-phase-on: NEVER
1394               abort-all-job: true
1395               git-revision: false
1396             - name: 'apex-os-odl-sfc-noha-baremetal-gambia'
1397               node-parameters: false
1398               current-parameters: false
1399               predefined-parameters: |
1400                 OPNFV_CLEAN=yes
1401               kill-phase-on: NEVER
1402               abort-all-job: true
1403               git-revision: false
1404             - name: 'apex-os-nosdn-calipso-noha-baremetal-gambia'
1405               node-parameters: false
1406               current-parameters: false
1407               predefined-parameters: |
1408                 OPNFV_CLEAN=yes
1409               kill-phase-on: NEVER
1410               abort-all-job: true
1411               git-revision: false
1412             - name: 'apex-os-ovn-nofeature-ha-baremetal-gambia'
1413               node-parameters: false
1414               current-parameters: false
1415               predefined-parameters: |
1416                 OPNFV_CLEAN=yes
1417               kill-phase-on: NEVER
1418               abort-all-job: true
1419               git-revision: false
1420
1421 # danube Builder
1422 - builder:
1423     name: apex-builder-danube
1424     builders:
1425       - multijob:
1426           name: Baremetal Deploy and Test Phase
1427           condition: SUCCESSFUL
1428           projects:
1429             - name: 'apex-os-nosdn-nofeature-noha-baremetal-danube'
1430               node-parameters: false
1431               current-parameters: false
1432               predefined-parameters: |
1433                 OPNFV_CLEAN=yes
1434               kill-phase-on: NEVER
1435               abort-all-job: true
1436               git-revision: false
1437             - name: 'apex-os-nosdn-nofeature-ha-baremetal-danube'
1438               node-parameters: false
1439               current-parameters: false
1440               predefined-parameters: |
1441                 OPNFV_CLEAN=yes
1442               kill-phase-on: NEVER
1443               abort-all-job: true
1444               git-revision: false
1445             - name: 'apex-os-nosdn-nofeature-ha-ipv6-baremetal-danube'
1446               node-parameters: false
1447               current-parameters: false
1448               predefined-parameters: |
1449                 OPNFV_CLEAN=yes
1450               kill-phase-on: NEVER
1451               abort-all-job: true
1452               git-revision: false
1453             - name: 'apex-os-nosdn-ovs-noha-baremetal-danube'
1454               node-parameters: false
1455               current-parameters: false
1456               predefined-parameters: |
1457                 OPNFV_CLEAN=yes
1458               kill-phase-on: NEVER
1459               abort-all-job: true
1460               git-revision: false
1461             - name: 'apex-os-nosdn-ovs-ha-baremetal-danube'
1462               node-parameters: false
1463               current-parameters: false
1464               predefined-parameters: |
1465                 OPNFV_CLEAN=yes
1466               kill-phase-on: NEVER
1467               abort-all-job: true
1468               git-revision: false
1469             - name: 'apex-os-nosdn-fdio-noha-baremetal-danube'
1470               node-parameters: false
1471               current-parameters: false
1472               predefined-parameters: |
1473                 OPNFV_CLEAN=yes
1474               kill-phase-on: NEVER
1475               abort-all-job: true
1476               git-revision: false
1477             - name: 'apex-os-nosdn-fdio-ha-baremetal-danube'
1478               node-parameters: false
1479               current-parameters: false
1480               predefined-parameters: |
1481                 OPNFV_CLEAN=yes
1482               kill-phase-on: NEVER
1483               abort-all-job: true
1484               git-revision: false
1485             - name: 'apex-os-nosdn-kvm-ha-baremetal-danube'
1486               node-parameters: false
1487               current-parameters: false
1488               predefined-parameters: |
1489                 OPNFV_CLEAN=yes
1490               kill-phase-on: NEVER
1491               abort-all-job: true
1492               git-revision: false
1493             - name: 'apex-os-nosdn-kvm-noha-baremetal-danube'
1494               node-parameters: false
1495               current-parameters: false
1496               predefined-parameters: |
1497                 OPNFV_CLEAN=yes
1498               kill-phase-on: NEVER
1499               abort-all-job: true
1500               git-revision: false
1501             - name: 'apex-os-odl_l2-fdio-noha-baremetal-danube'
1502               node-parameters: false
1503               current-parameters: false
1504               predefined-parameters: |
1505                 OPNFV_CLEAN=yes
1506               kill-phase-on: NEVER
1507               abort-all-job: true
1508               git-revision: false
1509             - name: 'apex-os-odl_l2-fdio-ha-baremetal-danube'
1510               node-parameters: false
1511               current-parameters: false
1512               predefined-parameters: |
1513                 OPNFV_CLEAN=yes
1514               kill-phase-on: NEVER
1515               abort-all-job: true
1516               git-revision: false
1517             - name: 'apex-os-odl_netvirt-fdio-noha-baremetal-danube'
1518               node-parameters: false
1519               current-parameters: false
1520               predefined-parameters: |
1521                 OPNFV_CLEAN=yes
1522               kill-phase-on: NEVER
1523               abort-all-job: true
1524               git-revision: false
1525             - name: 'apex-os-odl_l2-sfc-noha-baremetal-danube'
1526               node-parameters: false
1527               current-parameters: false
1528               predefined-parameters: |
1529                 OPNFV_CLEAN=yes
1530               kill-phase-on: NEVER
1531               abort-all-job: true
1532               git-revision: false
1533             - name: 'apex-os-odl_l3-nofeature-noha-baremetal-danube'
1534               node-parameters: false
1535               current-parameters: false
1536               predefined-parameters: |
1537                 OPNFV_CLEAN=yes
1538               kill-phase-on: NEVER
1539               abort-all-job: true
1540               git-revision: false
1541             - name: 'apex-os-odl_l3-nofeature-ha-baremetal-danube'
1542               node-parameters: false
1543               current-parameters: false
1544               predefined-parameters: |
1545                 OPNFV_CLEAN=yes
1546               kill-phase-on: NEVER
1547               abort-all-job: true
1548               git-revision: false
1549             - name: 'apex-os-odl_l3-ovs-noha-baremetal-danube'
1550               node-parameters: false
1551               current-parameters: false
1552               predefined-parameters: |
1553                 OPNFV_CLEAN=yes
1554               kill-phase-on: NEVER
1555               abort-all-job: true
1556               git-revision: false
1557             - name: 'apex-os-odl_l3-ovs-ha-baremetal-danube'
1558               node-parameters: false
1559               current-parameters: false
1560               predefined-parameters: |
1561                 OPNFV_CLEAN=yes
1562               kill-phase-on: NEVER
1563               abort-all-job: true
1564               git-revision: false
1565             - name: 'apex-os-odl-bgpvpn-ha-baremetal-danube'
1566               node-parameters: false
1567               current-parameters: false
1568               predefined-parameters: |
1569                 OPNFV_CLEAN=yes
1570               kill-phase-on: NEVER
1571               abort-all-job: true
1572               git-revision: false
1573             - name: 'apex-os-odl-gluon-noha-baremetal-danube'
1574               node-parameters: false
1575               current-parameters: false
1576               predefined-parameters: |
1577                 OPNFV_CLEAN=yes
1578               kill-phase-on: NEVER
1579               abort-all-job: true
1580               git-revision: false
1581             - name: 'apex-os-odl_l3-fdio-noha-baremetal-danube'
1582               node-parameters: false
1583               current-parameters: false
1584               predefined-parameters: |
1585                 OPNFV_CLEAN=yes
1586               kill-phase-on: NEVER
1587               abort-all-job: true
1588               git-revision: false
1589             - name: 'apex-os-odl_l3-fdio-ha-baremetal-danube'
1590               node-parameters: false
1591               current-parameters: false
1592               predefined-parameters: |
1593                 OPNFV_CLEAN=yes
1594               kill-phase-on: NEVER
1595               abort-all-job: true
1596               git-revision: false
1597             - name: 'apex-os-odl_l3-fdio_dvr-noha-baremetal-danube'
1598               node-parameters: false
1599               current-parameters: false
1600               predefined-parameters: |
1601                 OPNFV_CLEAN=yes
1602               kill-phase-on: NEVER
1603               abort-all-job: true
1604               git-revision: false
1605             - name: 'apex-os-odl_l3-fdio_dvr-ha-baremetal-danube'
1606               node-parameters: false
1607               current-parameters: false
1608               predefined-parameters: |
1609                 OPNFV_CLEAN=yes
1610               kill-phase-on: NEVER
1611               abort-all-job: true
1612               git-revision: false
1613             - name: 'apex-os-odl_l3-csit-noha-baremetal-danube'
1614               node-parameters: false
1615               current-parameters: false
1616               predefined-parameters: |
1617                 OPNFV_CLEAN=yes
1618               kill-phase-on: NEVER
1619               abort-all-job: true
1620               git-revision: false
1621             - name: 'apex-os-onos-nofeature-ha-baremetal-danube'
1622               node-parameters: false
1623               current-parameters: false
1624               predefined-parameters: |
1625                 OPNFV_CLEAN=yes
1626               kill-phase-on: NEVER
1627               abort-all-job: true
1628               git-revision: false
1629             - name: 'apex-os-ovn-nofeature-noha-baremetal-danube'
1630               node-parameters: false
1631               current-parameters: false
1632               predefined-parameters: |
1633                 OPNFV_CLEAN=yes
1634               kill-phase-on: NEVER
1635               abort-all-job: true
1636               git-revision: false
1637
1638 # master Builder
1639 - builder:
1640     name: apex-builder-master
1641     builders:
1642       - multijob:
1643           name: Baremetal Deploy and Test Phase
1644           condition: SUCCESSFUL
1645           projects:
1646             - name: 'apex-os-nosdn-nofeature-noha-baremetal-master'
1647               node-parameters: false
1648               current-parameters: false
1649               predefined-parameters: |
1650                 OPNFV_CLEAN=yes
1651               kill-phase-on: NEVER
1652               abort-all-job: true
1653               git-revision: false
1654             - name: 'apex-os-nosdn-nofeature-ha-baremetal-master'
1655               node-parameters: false
1656               current-parameters: false
1657               predefined-parameters: |
1658                 OPNFV_CLEAN=yes
1659               kill-phase-on: NEVER
1660               abort-all-job: true
1661               git-revision: false
1662             - name: 'apex-os-nosdn-nofeature-ha-ipv6-baremetal-master'
1663               node-parameters: false
1664               current-parameters: false
1665               predefined-parameters: |
1666                 OPNFV_CLEAN=yes
1667               kill-phase-on: NEVER
1668               abort-all-job: true
1669               git-revision: false
1670             - name: 'apex-os-odl-nofeature-noha-baremetal-master'
1671               node-parameters: false
1672               current-parameters: false
1673               predefined-parameters: |
1674                 OPNFV_CLEAN=yes
1675               kill-phase-on: NEVER
1676               abort-all-job: true
1677               git-revision: false
1678             - name: 'apex-os-odl-nofeature-ha-baremetal-master'
1679               node-parameters: false
1680               current-parameters: false
1681               predefined-parameters: |
1682                 OPNFV_CLEAN=yes
1683               kill-phase-on: NEVER
1684               abort-all-job: true
1685               git-revision: false
1686             - name: 'apex-os-nosdn-rocky-noha-baremetal-master'
1687               node-parameters: false
1688               current-parameters: false
1689               predefined-parameters: |
1690                 OPNFV_CLEAN=yes
1691               kill-phase-on: NEVER
1692               abort-all-job: true
1693               git-revision: false
1694             - name: 'apex-os-nosdn-rocky-ha-baremetal-master'
1695               node-parameters: false
1696               current-parameters: false
1697               predefined-parameters: |
1698                 OPNFV_CLEAN=yes
1699               kill-phase-on: NEVER
1700               abort-all-job: true
1701               git-revision: false
1702             - name: 'apex-os-nosdn-rocky-ha-ipv6-baremetal-master'
1703               node-parameters: false
1704               current-parameters: false
1705               predefined-parameters: |
1706                 OPNFV_CLEAN=yes
1707               kill-phase-on: NEVER
1708               abort-all-job: true
1709               git-revision: false
1710             - name: 'apex-os-odl-rocky-noha-baremetal-master'
1711               node-parameters: false
1712               current-parameters: false
1713               predefined-parameters: |
1714                 OPNFV_CLEAN=yes
1715               kill-phase-on: NEVER
1716               abort-all-job: true
1717               git-revision: false
1718             - name: 'apex-os-odl-rocky-ha-baremetal-master'
1719               node-parameters: false
1720               current-parameters: false
1721               predefined-parameters: |
1722                 OPNFV_CLEAN=yes
1723               kill-phase-on: NEVER
1724               abort-all-job: true
1725               git-revision: false
1726             - name: 'apex-k8s-nosdn-nofeature-noha-baremetal-master'
1727               node-parameters: false
1728               current-parameters: false
1729               predefined-parameters: |
1730                 OPNFV_CLEAN=yes
1731               kill-phase-on: NEVER
1732               abort-all-job: true
1733               git-revision: false
1734             - name: 'apex-os-odl-bgpvpn-ha-baremetal-master'
1735               node-parameters: false
1736               current-parameters: false
1737               predefined-parameters: |
1738                 OPNFV_CLEAN=yes
1739               kill-phase-on: NEVER
1740               abort-all-job: true
1741               git-revision: false
1742             - name: 'apex-os-odl-bgpvpn-noha-baremetal-master'
1743               node-parameters: false
1744               current-parameters: false
1745               predefined-parameters: |
1746                 OPNFV_CLEAN=yes
1747               kill-phase-on: NEVER
1748               abort-all-job: true
1749               git-revision: false
1750             - name: 'apex-os-odl-bgpvpn_queens-ha-baremetal-master'
1751               node-parameters: false
1752               current-parameters: false
1753               predefined-parameters: |
1754                 OPNFV_CLEAN=yes
1755               kill-phase-on: NEVER
1756               abort-all-job: true
1757               git-revision: false
1758             - name: 'apex-os-odl-bgpvpn_queens-noha-baremetal-master'
1759               node-parameters: false
1760               current-parameters: false
1761               predefined-parameters: |
1762                 OPNFV_CLEAN=yes
1763               kill-phase-on: NEVER
1764               abort-all-job: true
1765               git-revision: false
1766             - name: 'apex-os-odl-sfc-ha-baremetal-master'
1767               node-parameters: false
1768               current-parameters: false
1769               predefined-parameters: |
1770                 OPNFV_CLEAN=yes
1771               kill-phase-on: NEVER
1772               abort-all-job: true
1773               git-revision: false
1774             - name: 'apex-os-odl-sfc-noha-baremetal-master'
1775               node-parameters: false
1776               current-parameters: false
1777               predefined-parameters: |
1778                 OPNFV_CLEAN=yes
1779               kill-phase-on: NEVER
1780               abort-all-job: true
1781               git-revision: false
1782             - name: 'apex-os-odl-sfc_rocky-ha-baremetal-master'
1783               node-parameters: false
1784               current-parameters: false
1785               predefined-parameters: |
1786                 OPNFV_CLEAN=yes
1787               kill-phase-on: NEVER
1788               abort-all-job: true
1789               git-revision: false
1790             - name: 'apex-os-odl-sfc_rocky-noha-baremetal-master'
1791               node-parameters: false
1792               current-parameters: false
1793               predefined-parameters: |
1794                 OPNFV_CLEAN=yes
1795               kill-phase-on: NEVER
1796               abort-all-job: true
1797               git-revision: false
1798             - name: 'apex-os-nosdn-calipso-noha-baremetal-master'
1799               node-parameters: false
1800               current-parameters: false
1801               predefined-parameters: |
1802                 OPNFV_CLEAN=yes
1803               kill-phase-on: NEVER
1804               abort-all-job: true
1805               git-revision: false
1806             - name: 'apex-os-nosdn-calipso_rocky-noha-baremetal-master'
1807               node-parameters: false
1808               current-parameters: false
1809               predefined-parameters: |
1810                 OPNFV_CLEAN=yes
1811               kill-phase-on: NEVER
1812               abort-all-job: true
1813               git-revision: false
1814             - name: 'apex-os-ovn-nofeature-ha-baremetal-master'
1815               node-parameters: false
1816               current-parameters: false
1817               predefined-parameters: |
1818                 OPNFV_CLEAN=yes
1819               kill-phase-on: NEVER
1820               abort-all-job: true
1821               git-revision: false
1822             - name: 'apex-os-ovn-rocky-ha-baremetal-master'
1823               node-parameters: false
1824               current-parameters: false
1825               predefined-parameters: |
1826                 OPNFV_CLEAN=yes
1827               kill-phase-on: NEVER
1828               abort-all-job: true
1829               git-revision: false
1830
1831 # euphrates Builder
1832 - builder:
1833     name: apex-builder-euphrates
1834     builders:
1835       - multijob:
1836           name: Baremetal Deploy and Test Phase
1837           condition: SUCCESSFUL
1838           projects:
1839             - name: 'apex-os-nosdn-nofeature-noha-baremetal-euphrates'
1840               node-parameters: false
1841               current-parameters: false
1842               predefined-parameters: |
1843                 OPNFV_CLEAN=yes
1844               kill-phase-on: NEVER
1845               abort-all-job: true
1846               git-revision: false
1847             - name: 'apex-os-nosdn-nofeature-ha-baremetal-euphrates'
1848               node-parameters: false
1849               current-parameters: false
1850               predefined-parameters: |
1851                 OPNFV_CLEAN=yes
1852               kill-phase-on: NEVER
1853               abort-all-job: true
1854               git-revision: false
1855             - name: 'apex-os-odl-nofeature-ha-baremetal-euphrates'
1856               node-parameters: false
1857               current-parameters: false
1858               predefined-parameters: |
1859                 OPNFV_CLEAN=yes
1860               kill-phase-on: NEVER
1861               abort-all-job: true
1862               git-revision: false
1863             - name: 'apex-os-odl-nofeature-noha-baremetal-euphrates'
1864               node-parameters: false
1865               current-parameters: false
1866               predefined-parameters: |
1867                 OPNFV_CLEAN=yes
1868               kill-phase-on: NEVER
1869               abort-all-job: true
1870               git-revision: false
1871             - name: 'apex-os-odl-bgpvpn-ha-baremetal-euphrates'
1872               node-parameters: false
1873               current-parameters: false
1874               predefined-parameters: |
1875                 OPNFV_CLEAN=yes
1876               kill-phase-on: NEVER
1877               abort-all-job: true
1878               git-revision: false
1879             - name: 'apex-os-ovn-nofeature-noha-baremetal-euphrates'
1880               node-parameters: false
1881               current-parameters: false
1882               predefined-parameters: |
1883                 OPNFV_CLEAN=yes
1884               kill-phase-on: NEVER
1885               abort-all-job: true
1886               git-revision: false
1887             - name: 'apex-os-nosdn-fdio-noha-baremetal-euphrates'
1888               node-parameters: false
1889               current-parameters: false
1890               predefined-parameters: |
1891                 OPNFV_CLEAN=yes
1892               kill-phase-on: NEVER
1893               abort-all-job: true
1894               git-revision: false
1895             - name: 'apex-os-nosdn-fdio-ha-baremetal-euphrates'
1896               node-parameters: false
1897               current-parameters: false
1898               predefined-parameters: |
1899                 OPNFV_CLEAN=yes
1900               kill-phase-on: NEVER
1901               abort-all-job: true
1902               git-revision: false
1903             - name: 'apex-os-nosdn-bar-ha-baremetal-euphrates'
1904               node-parameters: false
1905               current-parameters: false
1906               predefined-parameters: |
1907                 OPNFV_CLEAN=yes
1908               kill-phase-on: NEVER
1909               abort-all-job: true
1910               git-revision: false
1911             - name: 'apex-os-nosdn-bar-noha-baremetal-euphrates'
1912               node-parameters: false
1913               current-parameters: false
1914               predefined-parameters: |
1915                 OPNFV_CLEAN=yes
1916               kill-phase-on: NEVER
1917               abort-all-job: true
1918               git-revision: false
1919             - name: 'apex-os-nosdn-nofeature-ha-ipv6-baremetal-euphrates'
1920               node-parameters: false
1921               current-parameters: false
1922               predefined-parameters: |
1923                 OPNFV_CLEAN=yes
1924               kill-phase-on: NEVER
1925               abort-all-job: true
1926               git-revision: false
1927             - name: 'apex-os-nosdn-ovs_dpdk-noha-baremetal-euphrates'
1928               node-parameters: false
1929               current-parameters: false
1930               predefined-parameters: |
1931                 OPNFV_CLEAN=yes
1932               kill-phase-on: NEVER
1933               abort-all-job: true
1934               git-revision: false
1935             - name: 'apex-os-nosdn-ovs_dpdk-ha-baremetal-euphrates'
1936               node-parameters: false
1937               current-parameters: false
1938               predefined-parameters: |
1939                 OPNFV_CLEAN=yes
1940               kill-phase-on: NEVER
1941               abort-all-job: true
1942               git-revision: false
1943             - name: 'apex-os-nosdn-kvm_ovs_dpdk-noha-baremetal-euphrates'
1944               node-parameters: false
1945               current-parameters: false
1946               predefined-parameters: |
1947                 OPNFV_CLEAN=yes
1948               kill-phase-on: NEVER
1949               abort-all-job: true
1950               git-revision: false
1951             - name: 'apex-os-nosdn-kvm_ovs_dpdk-ha-baremetal-euphrates'
1952               node-parameters: false
1953               current-parameters: false
1954               predefined-parameters: |
1955                 OPNFV_CLEAN=yes
1956               kill-phase-on: NEVER
1957               abort-all-job: true
1958               git-revision: false
1959             - name: 'apex-os-odl-sfc-noha-baremetal-euphrates'
1960               node-parameters: false
1961               current-parameters: false
1962               predefined-parameters: |
1963                 OPNFV_CLEAN=yes
1964               kill-phase-on: NEVER
1965               abort-all-job: true
1966               git-revision: false
1967             - name: 'apex-os-odl-sfc-ha-baremetal-euphrates'
1968               node-parameters: false
1969               current-parameters: false
1970               predefined-parameters: |
1971                 OPNFV_CLEAN=yes
1972               kill-phase-on: NEVER
1973               abort-all-job: true
1974               git-revision: false
1975 - builder:
1976     name: 'apex-upload-artifact'
1977     builders:
1978       - shell:
1979           !include-raw: ./apex-upload-artifact.sh
1980
1981 - builder:
1982     name: 'apex-download-artifact'
1983     builders:
1984       - shell:
1985           !include-raw: ./apex-download-artifact.sh
1986
1987 - builder:
1988     name: 'apex-deploy'
1989     builders:
1990       - shell:
1991           !include-raw: ./apex-deploy.sh
1992
1993 - builder:
1994     name: 'apex-fetch-logs'
1995     builders:
1996       - shell:
1997           !include-raw: ./apex-fetch-logs.sh
1998
1999 #######################
2000 # trigger macros
2001 # timed is in format: 'min hour daymonth month dayweek'
2002 ########################
2003 - trigger:
2004     name: 'apex-master'
2005     triggers:
2006       - timed: '0 0 1-31/2 * *'
2007
2008 - trigger:
2009     name: 'apex-gambia'
2010     triggers:
2011       - timed: '0 4 2-30/2 * *'
2012
2013 - trigger:
2014     name: 'apex-fraser'
2015     triggers:
2016       - timed: '0 0 2-30/2 * *'
2017
2018 - trigger:
2019     name: 'apex-euphrates'
2020     triggers:
2021       - timed: '0 0 2-30/2 * *'
2022
2023 - trigger:
2024     name: 'apex-danube'
2025     triggers:
2026       - timed: '0 3 1 1 7'
2027
2028 - trigger:
2029     name: 'master-master'
2030     triggers:
2031       - timed: '0 12 * * *'
2032
2033 - trigger:
2034     name: 'master-rocky'
2035     triggers:
2036       - timed: '0 12 * * *'
2037
2038 - trigger:
2039     name: 'master-queens'
2040     triggers:
2041       - timed: ''
2042
2043 - trigger:
2044     name: 'gambia-master'
2045     triggers:
2046       - timed: ''
2047
2048 - trigger:
2049     name: 'gambia-rocky'
2050     triggers:
2051       - timed: ''
2052
2053 - trigger:
2054     name: 'gambia-queens'
2055     triggers:
2056       - timed: '0 12 * * *'
2057
2058 - trigger:
2059     name: 'fraser-master'
2060     triggers:
2061       - timed: ''
2062
2063 - trigger:
2064     name: 'fraser-rocky'
2065     triggers:
2066       - timed: ''
2067
2068 - trigger:
2069     name: 'fraser-queens'
2070     triggers:
2071       - timed: ''
2072
2073 - trigger:
2074     name: 'euphrates-master'
2075     triggers:
2076       - timed: ''
2077
2078 - trigger:
2079     name: 'euphrates-rocky'
2080     triggers:
2081       - timed: ''
2082
2083 - trigger:
2084     name: 'euphrates-queens'
2085     triggers:
2086       - timed: ''
2087
2088 - trigger:
2089     name: 'danube-master'
2090     triggers:
2091       - timed: ''
2092
2093 - trigger:
2094     name: 'danube-rocky'
2095     triggers:
2096       - timed: ''
2097
2098 - trigger:
2099     name: 'danube-queens'
2100     triggers:
2101       - timed: ''