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