b20c469bf646b335478a04e450ab4f804242f578
[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-odl-nofeature-noha':
127           <<: *master
128       - 'os-odl-nofeature-ha':
129           <<: *master
130       - 'os-nosdn-queens-noha':
131           <<: *master
132       - 'os-nosdn-queens-ha':
133           <<: *master
134       - 'os-odl-queens-noha':
135           <<: *master
136       - 'os-odl-queens-ha':
137           <<: *master
138       - 'k8s-nosdn-nofeature-noha':
139           <<: *master
140       - 'os-odl-bgpvpn-ha':
141           <<: *master
142       - 'os-odl-bgpvpn-noha':
143           <<: *master
144       - 'os-odl-bgpvpn_queens-ha':
145           <<: *master
146       - 'os-odl-bgpvpn_queens-noha':
147           <<: *master
148       - 'os-nosdn-nofeature-noha':
149           <<: *euphrates
150       - 'os-nosdn-nofeature-ha':
151           <<: *euphrates
152       - 'os-odl-nofeature-ha':
153           <<: *euphrates
154       - 'os-odl-nofeature-noha':
155           <<: *euphrates
156       - 'os-odl-bgpvpn-ha':
157           <<: *euphrates
158       - 'os-ovn-nofeature-noha':
159           <<: *euphrates
160       - 'os-nosdn-fdio-noha':
161           <<: *euphrates
162       - 'os-nosdn-fdio-ha':
163           <<: *euphrates
164       - 'os-nosdn-bar-ha':
165           <<: *euphrates
166       - 'os-nosdn-bar-noha':
167           <<: *euphrates
168       - 'os-nosdn-nofeature-ha-ipv6':
169           <<: *euphrates
170       - 'os-nosdn-ovs_dpdk-noha':
171           <<: *euphrates
172       - 'os-nosdn-ovs_dpdk-ha':
173           <<: *euphrates
174       - 'os-nosdn-kvm_ovs_dpdk-noha':
175           <<: *euphrates
176       - 'os-nosdn-kvm_ovs_dpdk-ha':
177           <<: *euphrates
178       - 'os-odl-sfc-noha':
179           <<: *euphrates
180       - 'os-odl-sfc-ha':
181           <<: *euphrates
182       - 'os-nosdn-calipso-noha':
183           <<: *euphrates
184
185     platform:
186       - 'baremetal'
187       - 'virtual'
188
189     os_version:
190       - 'pike':
191           os_scenario: 'pike'
192           odl_branch: 'stable/carbon'
193       - 'queens':
194           os_scenario: 'queens'
195           odl_branch: 'stable/oxygen'
196       - 'master':
197           os_scenario: 'nofeature'
198           odl_branch: 'stable/oxygen'
199
200     topology:
201       - 'noha'
202       - 'ha'
203       - 'noha-allinone'
204
205 # Fetch Logs Job
206 - job-template:
207     name: 'apex-fetch-logs-{stream}'
208
209     concurrent: true
210
211     disabled: false
212     scm:
213       - git-scm-gerrit
214     parameters:
215       - project-parameter:
216           project: '{project}'
217           branch: '{branch}'
218       - apex-parameter:
219           gs-pathname: '{gs-pathname}'
220     # yamllint enable rule:line-length
221     properties:
222       - logrotate-default
223       - throttle:
224           max-per-node: 1
225           max-total: 10
226           option: 'project'
227
228     builders:
229       - 'apex-fetch-logs'
230
231 - job-template:
232     name: 'apex-runner-cperf-{stream}'
233
234     # runner cperf job
235     project-type: 'multijob'
236     node: 'intel-pod2'
237
238     disabled: false
239
240     parameters:
241       - apex-parameter:
242           gs-pathname: '{gs-pathname}'
243       - project-parameter:
244           project: '{project}'
245           branch: '{branch}'
246       - string:
247           name: GIT_BASE
248           default: https://gerrit.opnfv.org/gerrit/$PROJECT
249           description: "Used for overriding the GIT URL coming from parameters macro."
250
251     scm:
252       - git-scm
253
254     properties:
255       - logrotate-default
256       - build-blocker:
257           use-build-blocker: false
258           block-level: 'NODE'
259           blocking-jobs:
260             - 'apex-deploy.*'
261       - throttle:
262           max-per-node: 1
263           max-total: 10
264           option: 'project'
265
266     builders:
267       - description-setter:
268           description: "Deployed on $NODE_NAME"
269       - multijob:
270           name: 'Baremetal Deploy'
271           condition: ALWAYS
272           projects:
273             - name: 'apex-deploy-baremetal-{stream}'
274               node-parameters: false
275               current-parameters: true
276               predefined-parameters: |
277                 GERRIT_BRANCH=$GERRIT_BRANCH
278                 GERRIT_REFSPEC=
279                 OPNFV_CLEAN=yes
280                 DEPLOY_SCENARIO={verify-scenario}
281               kill-phase-on: FAILURE
282               abort-all-job: true
283               git-revision: false
284       - multijob:
285           name: CPERF
286           condition: SUCCESSFUL
287           projects:
288             - name: 'cperf-apex-intel-pod2-daily-master'
289               node-parameters: true
290               current-parameters: false
291               predefined-parameters:
292                 DEPLOY_SCENARIO={verify-scenario}
293               kill-phase-on: NEVER
294               abort-all-job: false
295               git-revision: false
296
297 # Deploy job
298 - job-template:
299     name: 'apex-deploy-{platform}-{stream}'
300
301     concurrent: true
302
303     disabled: false
304     quiet-period: 30
305     scm:
306       - git-scm-gerrit
307
308     wrappers:
309       - timeout:
310           timeout: 140
311           fail: true
312
313     parameters:
314       - '{project}-{platform}-{stream}-defaults'
315       - project-parameter:
316           project: '{project}'
317           branch: '{branch}'
318       - apex-parameter:
319           gs-pathname: '{gs-pathname}'
320       - string:
321           name: DEPLOY_SCENARIO
322           default: '{verify-scenario}'
323           description: "Scenario to deploy with."
324       # yamllint disable rule:line-length
325       - string:
326           name: OPNFV_CLEAN
327           default: 'no'
328           description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
329
330     # yamllint enable rule:line-length
331     properties:
332       - logrotate-default
333       - build-blocker:
334           use-build-blocker: true
335           block-level: 'NODE'
336           blocking-jobs:
337             - 'apex-deploy.*'
338             - 'functest.*'
339             - 'yardstick.*'
340             - 'dovetail.*'
341             - 'storperf.*'
342             - 'odl-netvirt.*'
343       - throttle:
344           max-per-node: 1
345           max-total: 10
346           option: 'project'
347
348     builders:
349       - description-setter:
350           description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
351       - 'apex-download-artifact'
352       - 'apex-deploy'
353       - 'clean-workspace'
354
355
356 # Virtual Deploy and Test
357 - job-template:
358     name: 'apex-virtual-{stream}'
359
360     project-type: 'multijob'
361
362     concurrent: true
363
364     disabled: false
365
366     scm:
367       - git-scm-gerrit
368
369     parameters:
370       - '{project}-defaults'
371       - '{project}-virtual-{stream}-defaults'
372       - 'functest-suite-parameter'
373       - project-parameter:
374           project: '{project}'
375           branch: '{branch}'
376       - apex-parameter:
377           gs-pathname: '{gs-pathname}'
378       - string:
379           name: DEPLOY_SCENARIO
380           default: '{verify-scenario}'
381           description: "Scenario to deploy with."
382       - string:
383           name: ARTIFACT_VERSION
384           default: dev
385           description: "Used for overriding the ARTIFACT_VERSION"
386
387     properties:
388       - logrotate-default
389       - build-blocker:
390           use-build-blocker: true
391           block-level: 'NODE'
392           blocking-jobs:
393             - 'apex-runner.*'
394             - 'apex-run.*'
395             - 'apex-virtual-.*'
396             - 'apex-verify-gate-.*'
397             - 'odl-netvirt.*'
398       - throttle:
399           max-per-node: 1
400           max-total: 10
401           option: 'project'
402
403     builders:
404       - description-setter:
405           description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
406       - multijob:
407           name: deploy-virtual
408           condition: SUCCESSFUL
409           projects:
410             - name: 'apex-deploy-virtual-{stream}'
411               current-parameters: false
412               predefined-parameters: |
413                 ARTIFACT_VERSION=$ARTIFACT_VERSION
414                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
415                 OPNFV_CLEAN=yes
416                 GERRIT_BRANCH=$GERRIT_BRANCH
417                 GERRIT_REFSPEC=$GERRIT_REFSPEC
418                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
419                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
420                 PROMOTE=$PROMOTE
421               node-parameters: true
422               kill-phase-on: FAILURE
423               abort-all-job: true
424               git-revision: true
425       - shell: |
426           if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
427           echo 'REPO=opnfv' > functest_repo
428           else
429           echo 'REPO=ollivier' > functest_repo
430           fi
431       - inject:
432           properties-file: functest_repo
433       - multijob:
434           name: functest-smoke
435           condition: ALWAYS
436           projects:
437             - name: 'functest-apex-virtual-suite-{stream}'
438               current-parameters: false
439               predefined-parameters: |
440                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
441                 FUNCTEST_MODE=$FUNCTEST_MODE
442                 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
443                 REPO=$REPO
444                 GERRIT_BRANCH=$GERRIT_BRANCH
445                 GERRIT_REFSPEC=$GERRIT_REFSPEC
446                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
447                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
448               node-parameters: true
449               kill-phase-on: NEVER
450               abort-all-job: true
451               git-revision: false
452       - multijob:
453           name: apex-fetch-logs
454           projects:
455             - name: 'apex-fetch-logs-{stream}'
456               current-parameters: false
457               predefined-parameters: |
458                 GERRIT_BRANCH=$GERRIT_BRANCH
459                 GERRIT_REFSPEC=$GERRIT_REFSPEC
460                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
461                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
462               node-parameters: true
463               kill-phase-on: NEVER
464               abort-all-job: true
465               git-revision: false
466
467 # Baremetal Deploy and Test
468 - job-template:
469     name: 'apex-{scenario}-baremetal-{scenario_stream}'
470
471     project-type: 'multijob'
472
473     disabled: false
474
475     scm:
476       - git-scm
477
478     parameters:
479       - '{project}-defaults'
480       - '{project}-baremetal-{scenario_stream}-defaults'
481       - project-parameter:
482           project: '{project}'
483           branch: '{branch}'
484       - apex-parameter:
485           gs-pathname: '{gs-pathname}'
486       - string:
487           name: DEPLOY_SCENARIO
488           default: '{scenario}'
489           description: "Scenario to deploy with."
490
491     properties:
492       - logrotate-default
493       - build-blocker:
494           use-build-blocker: true
495           block-level: 'NODE'
496           blocking-jobs:
497             - 'apex-verify.*'
498             - 'apex-runner.*'
499             - 'apex-.*-promote.*'
500             - 'apex-run.*'
501             - 'apex-.+-baremetal-.+'
502       - throttle:
503           max-per-node: 1
504           max-total: 10
505           option: 'project'
506
507     builders:
508       - description-setter:
509           description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
510       - multijob:
511           name: 'Baremetal Deploy'
512           condition: SUCCESSFUL
513           execution-type: SEQUENTIALLY
514           projects:
515             - name: 'apex-deploy-baremetal-{scenario_stream}'
516               node-parameters: true
517               current-parameters: true
518               predefined-parameters: |
519                 OPNFV_CLEAN=yes
520                 GERRIT_BRANCH=$GERRIT_BRANCH
521                 GERRIT_REFSPEC=
522                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
523               kill-phase-on: NEVER
524               abort-all-job: true
525               git-revision: false
526             - name: 'apex-fetch-logs-{scenario_stream}'
527               current-parameters: true
528               predefined-parameters: |
529                 GERRIT_BRANCH=$GERRIT_BRANCH
530                 GERRIT_REFSPEC=
531               node-parameters: true
532               kill-phase-on: NEVER
533               abort-all-job: true
534               git-revision: false
535       - shell: |
536           if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
537             echo 'REPO=opnfv' > functest_properties
538           else
539             echo 'REPO=ollivier' > functest_properties
540           fi
541           features=$(echo $DEPLOY_SCENARIO | sed -r -n 's/os-.+-(.+)-(noha|ha)/\1/p')
542           if [ "$features" == 'queens' ]; then
543             functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-queens-(noha|ha)/\1-nofeature-\2/p')
544           elif [[ "$features" =~ 'queens' ]]; then
545             functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-(.+)_queens-(noha|ha)/\1-\2-\3/p')
546           else
547             functest_scenario=$DEPLOY_SCENARIO
548           fi
549           echo "DEPLOY_SCENARIO=$functest_scenario" >> functest_properties
550       - inject:
551           properties-file: functest_properties
552           override-build-parameters: true
553       - multijob:
554           name: 'OPNFV Test Suite'
555           condition: ALWAYS
556           projects:
557             - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
558               node-parameters: true
559               current-parameters: false
560               predefined-parameters:
561                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
562               kill-phase-on: NEVER
563               abort-all-job: true
564               git-revision: false
565       - multijob:
566           name: apex-fetch-logs
567           projects:
568             - name: 'apex-fetch-logs-{scenario_stream}'
569               current-parameters: true
570               predefined-parameters: |
571                 GERRIT_BRANCH=$GERRIT_BRANCH
572                 GERRIT_REFSPEC=
573               node-parameters: true
574               kill-phase-on: NEVER
575               abort-all-job: true
576               git-revision: false
577     publishers:
578       - groovy-postbuild:
579           script:
580             !include-raw-escape: ./update-build-result.groovy
581
582 # Baremetal test job
583 - job-template:
584     name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
585
586     project-type: 'multijob'
587
588     disabled: false
589
590     parameters:
591       - '{project}-defaults'
592       - '{project}-baremetal-{scenario_stream}-defaults'
593       - project-parameter:
594           project: '{project}'
595           branch: '{branch}'
596       - apex-parameter:
597           gs-pathname: '{gs-pathname}'
598       - string:
599           name: DEPLOY_SCENARIO
600           default: '{scenario}'
601           description: "Scenario to deploy with."
602
603     properties:
604       - logrotate-default
605       - build-blocker:
606           use-build-blocker: true
607           block-level: 'NODE'
608           blocking-jobs:
609             - 'apex-verify.*'
610             - 'apex-runner.*'
611             - 'apex-run.*'
612             - 'apex-testsuite-.+-baremetal-.+'
613       - throttle:
614           max-per-node: 1
615           max-total: 10
616           option: 'project'
617
618     builders:
619       - description-setter:
620           description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
621       - multijob:
622           name: Functest
623           condition: ALWAYS
624           projects:
625             - name: 'functest-apex-baremetal-daily-{scenario_stream}'
626               node-parameters: true
627               current-parameters: false
628               predefined-parameters:
629                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
630               kill-phase-on: NEVER
631               abort-all-job: false
632               git-revision: false
633       - multijob:
634           name: Yardstick
635           condition: ALWAYS
636           projects:
637             - name: 'yardstick-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: Dovetail-proposed_tests
647           condition: ALWAYS
648           projects:
649             - name: 'dovetail-apex-baremetal-default-mandatory-{scenario_stream}'
650               node-parameters: true
651               current-parameters: false
652               predefined-parameters:
653                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
654               kill-phase-on: NEVER
655               enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
656               abort-all-job: false
657               git-revision: false
658       - multijob:
659           name: Dovetail-default
660           condition: ALWAYS
661           projects:
662             - name: 'dovetail-apex-baremetal-default-optional-{scenario_stream}'
663               node-parameters: true
664               current-parameters: false
665               predefined-parameters:
666                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
667               kill-phase-on: NEVER
668               enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
669               abort-all-job: false
670               git-revision: false
671       - multijob:
672           name: StorPerf
673           condition: ALWAYS
674           projects:
675             - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
676               node-parameters: true
677               current-parameters: false
678               predefined-parameters:
679                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
680               enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
681               kill-phase-on: NEVER
682               abort-all-job: false
683               git-revision: false
684 # Build status is always success due conditional plugin prefetching
685 # build status before multijob phases execute
686 #        - conditional-step:
687 #            condition-kind: current-status
688 #            condition-worst: SUCCESS
689 #            condtion-best: SUCCESS
690 #            on-evaluation-failure: mark-unstable
691 #            steps:
692 #                - shell: 'echo "Tests Passed"'
693
694 - job-template:
695     name: 'apex-daily-{stream}'
696
697     # Job template for daily build
698     #
699     # Required Variables:
700     #     stream:    branch with - in place of / (eg. stable)
701     #     branch:    branch (eg. stable)
702     project-type: 'multijob'
703
704     disabled: '{obj:disable_daily}'
705
706     scm:
707       - git-scm
708
709     parameters:
710       - '{project}-defaults'
711       - '{project}-baremetal-{stream}-defaults'
712       - project-parameter:
713           project: '{project}'
714           branch: '{branch}'
715       - apex-parameter:
716           gs-pathname: '{gs-pathname}'
717
718     properties:
719       - logrotate-default
720       - build-blocker:
721           use-build-blocker: true
722           block-level: 'NODE'
723           blocking-jobs:
724             - 'apex-daily.*'
725
726     triggers:
727       - 'apex-{stream}'
728
729     builders:
730       - multijob:
731           name: build
732           condition: SUCCESSFUL
733           projects:
734             - name: 'apex-build-{stream}'
735               current-parameters: false
736               predefined-parameters: |
737                 GERRIT_BRANCH=$GERRIT_BRANCH
738                 GERRIT_REFSPEC=
739                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
740                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
741               node-parameters: true
742               kill-phase-on: FAILURE
743               abort-all-job: true
744               git-revision: true
745       - multijob:
746           name: 'Verify and upload ISO'
747           condition: SUCCESSFUL
748           projects:
749             - name: 'apex-verify-iso-{stream}'
750               current-parameters: false
751               predefined-parameters: |
752                 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
753                 GERRIT_BRANCH=$GERRIT_BRANCH
754                 GERRIT_REFSPEC=
755                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
756                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
757               node-parameters: true
758               kill-phase-on: FAILURE
759               abort-all-job: true
760               git-revision: true
761       - apex-builder-{stream}
762
763 # snapshot info fetch
764 - job-template:
765     name: 'apex-fetch-snap-info'
766
767     disabled: false
768
769     parameters:
770       - '{project}-defaults'
771
772     builders:
773       - shell:
774           !include-raw-escape: ./apex-fetch-snap-info.sh
775
776 # snapshot create
777 - job-template:
778     name: 'apex-create-snapshot'
779
780     disabled: false
781
782     parameters:
783       - '{project}-defaults'
784
785     builders:
786       - shell:
787           !include-raw-escape: ./apex-snapshot-create.sh
788
789 # snapshot upload
790 - job-template:
791     name: 'apex-upload-snapshot'
792
793     disabled: false
794
795     parameters:
796       - '{project}-defaults'
797
798     builders:
799       - inject:
800           properties-content: ARTIFACT_TYPE=snapshot
801       - 'apex-upload-artifact'
802
803 # CSIT promote
804 - job-template:
805     name: 'apex-csit-promote-daily-{stream}-os-{os_version}-{topology}'
806
807     # Job template for promoting CSIT Snapshots
808     #
809     # Required Variables:
810     #     stream:    branch with - in place of / (eg. stable)
811     #     branch:    branch (eg. stable)
812     node: '{virtual-slave}'
813     project-type: 'multijob'
814     disabled: '{disable_promote}'
815
816     scm:
817       - git-scm
818
819     parameters:
820       - project-parameter:
821           project: '{project}'
822           branch: '{branch}'
823       - apex-parameter:
824           gs-pathname: '{gs-pathname}'
825       - string:
826           name: ARTIFACT_VERSION
827           default: dev
828           description: "Used for overriding the ARTIFACT_VERSION"
829       - string:
830           name: PROMOTE
831           default: 'True'
832           description: "Used for overriding the PROMOTE"
833       - string:
834           name: GS_URL
835           default: $GS_BASE{gs-pathname}/{os_version}/{topology}
836           description: "User for overriding GS_URL from apex params"
837       - string:
838           name: OS_VERSION
839           default: '{os_version}'
840           description: OpenStack version short name
841       - string:
842           name: ODL_BRANCH
843           default: '{odl_branch}'
844           description: ODL branch being used
845
846     properties:
847       - build-blocker:
848           use-build-blocker: true
849           block-level: 'NODE'
850           blocking-jobs:
851             - 'apex-verify.*'
852             - 'apex-runner.*'
853             - 'apex-daily.*'
854             - 'apex-csit-promote.*'
855             - 'odl-netvirt.*'
856       - throttle:
857           max-per-node: 1
858           max-total: 10
859           option: 'project'
860
861     triggers:
862       - timed: '0 12 * * 0'
863
864     builders:
865       - multijob:
866           name: apex-virtual-deploy
867           condition: SUCCESSFUL
868           projects:
869             - name: 'apex-deploy-virtual-{stream}'
870               current-parameters: true
871               predefined-parameters: |
872                 DEPLOY_SCENARIO=os-odl-{os_scenario}-{topology}
873                 OPNFV_CLEAN=yes
874                 GERRIT_BRANCH=$GERRIT_BRANCH
875                 GERRIT_REFSPEC=$GERRIT_REFSPEC
876                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
877                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
878               node-parameters: true
879               kill-phase-on: FAILURE
880               abort-all-job: true
881               git-revision: true
882       - multijob:
883           name: fetch snapshot info
884           condition: SUCCESSFUL
885           projects:
886             - name: 'apex-fetch-snap-info'
887               current-parameters: true
888               node-parameters: true
889               kill-phase-on: FAILURE
890               abort-all-job: true
891               git-revision: false
892       - multijob:
893           name: csit
894           condition: SUCCESSFUL
895           execution-type: SEQUENTIALLY
896           projects:
897             - name: cperf-apex-csit-master
898               predefined-parameters: |
899                 ODL_BRANCH=$ODL_BRANCH
900                 RC_FILE_PATH=/tmp/csit/overcloudrc
901                 NODE_FILE_PATH=/tmp/csit/node.yaml
902                 SSH_KEY_PATH=/tmp/csit/id_rsa
903                 ODL_CONTAINERIZED=true
904                 OS_VERSION=$OS_VERSION
905               node-parameters: true
906               kill-phase-on: NEVER
907               abort-all-job: false
908             - name: cperf-upload-logs-csit
909               predefined-parameters: |
910                 ODL_BRANCH=$ODL_BRANCH
911                 OS_VERSION=$OS_VERSION
912               node-parameters: true
913               kill-phase-on: FAILURE
914               abort-all-job: false
915       - multijob:
916           name: create snapshot
917           condition: SUCCESSFUL
918           projects:
919             - name: 'apex-create-snapshot'
920               current-parameters: true
921               predefined-parameters: |
922                 SNAP_TYPE=csit
923               node-parameters: true
924               kill-phase-on: FAILURE
925               abort-all-job: true
926               git-revision: false
927       - multijob:
928           name: upload snapshot
929           condition: SUCCESSFUL
930           projects:
931             - name: 'apex-upload-snapshot'
932               current-parameters: true
933               predefined-parameters: |
934                 SNAP_TYPE=csit
935               node-parameters: true
936               kill-phase-on: FAILURE
937               abort-all-job: true
938               git-revision: false
939
940 # FDIO promote
941 - job-template:
942     name: 'apex-fdio-promote-daily-{stream}'
943
944     # Job template for promoting CSIT Snapshots
945     #
946     # Required Variables:
947     #     stream:    branch with - in place of / (eg. stable)
948     #     branch:    branch (eg. stable)
949     node: '{virtual-slave}'
950     project-type: 'multijob'
951     disabled: false
952
953     scm:
954       - git-scm
955
956     parameters:
957       - project-parameter:
958           project: '{project}'
959           branch: '{branch}'
960       - apex-parameter:
961           gs-pathname: '{gs-pathname}'
962
963     properties:
964       - build-blocker:
965           use-build-blocker: true
966           block-level: 'NODE'
967           blocking-jobs:
968             - 'apex-verify.*'
969             - 'apex-deploy.*'
970             - 'apex-runner.*'
971             - 'apex-daily.*'
972
973     builders:
974       - multijob:
975           name: build
976           condition: SUCCESSFUL
977           projects:
978             - name: 'apex-build-{stream}'
979               current-parameters: false
980               predefined-parameters: |
981                 GERRIT_BRANCH=$GERRIT_BRANCH
982                 GERRIT_REFSPEC=$GERRIT_REFSPEC
983                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
984                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
985               node-parameters: false
986               kill-phase-on: FAILURE
987               abort-all-job: true
988               git-revision: true
989       - multijob:
990           name: deploy-virtual
991           condition: SUCCESSFUL
992           projects:
993             - name: 'apex-deploy-virtual-{stream}'
994               current-parameters: false
995               predefined-parameters: |
996                 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
997                 OPNFV_CLEAN=yes
998                 GERRIT_BRANCH=$GERRIT_BRANCH
999                 GERRIT_REFSPEC=$GERRIT_REFSPEC
1000                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1001                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1002                 PROMOTE=True
1003               node-parameters: true
1004               kill-phase-on: FAILURE
1005               abort-all-job: true
1006               git-revision: false
1007       - multijob:
1008           name: create snapshot
1009           condition: SUCCESSFUL
1010           projects:
1011             - name: 'apex-create-snapshot'
1012               current-parameters: false
1013               predefined-parameters: |
1014                 SNAP_TYPE=fdio
1015               node-parameters: true
1016               kill-phase-on: FAILURE
1017               abort-all-job: true
1018               git-revision: false
1019       - multijob:
1020           name: upload snapshot
1021           condition: SUCCESSFUL
1022           projects:
1023             - name: 'apex-upload-snapshot'
1024               current-parameters: false
1025               predefined-parameters: |
1026                 SNAP_TYPE=fdio
1027               node-parameters: true
1028               kill-phase-on: FAILURE
1029               abort-all-job: true
1030               git-revision: false
1031
1032 # Flex job
1033 - job-template:
1034     name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
1035
1036     project-type: 'multijob'
1037
1038     disabled: false
1039
1040     node: 'flex-pod2'
1041
1042     scm:
1043       - git-scm
1044
1045     triggers:
1046       - 'apex-{stream}'
1047
1048     parameters:
1049       - '{project}-defaults'
1050       - project-parameter:
1051           project: '{project}'
1052           branch: '{branch}'
1053       - apex-parameter:
1054           gs-pathname: '{gs-pathname}'
1055       - string:
1056           name: DEPLOY_SCENARIO
1057           default: 'os-nosdn-nofeature-ha'
1058           description: "Scenario to deploy with."
1059       - string:
1060           name: GIT_BASE
1061           default: https://gerrit.opnfv.org/gerrit/$PROJECT
1062           description: 'Git URL to use on this Jenkins Slave'
1063       - string:
1064           name: SSH_KEY
1065           default: /root/.ssh/id_rsa
1066           description: 'SSH key to use for Apex'
1067
1068     properties:
1069       - logrotate-default
1070       - build-blocker:
1071           use-build-blocker: true
1072           block-level: 'NODE'
1073           blocking-jobs:
1074             - 'apex-verify.*'
1075             - 'apex-runner.*'
1076             - 'apex-.*-promote.*'
1077             - 'apex-run.*'
1078             - 'apex-.+-baremetal-.+'
1079       - throttle:
1080           max-per-node: 1
1081           max-total: 10
1082           option: 'project'
1083
1084     builders:
1085       - description-setter:
1086           description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
1087       - multijob:
1088           name: 'Baremetal Deploy'
1089           condition: SUCCESSFUL
1090           projects:
1091             - name: 'apex-deploy-baremetal-{stream}'
1092               node-parameters: true
1093               current-parameters: true
1094               predefined-parameters: |
1095                 OPNFV_CLEAN=yes
1096                 GERRIT_BRANCH=$GERRIT_BRANCH
1097                 GERRIT_REFSPEC=
1098                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1099               kill-phase-on: FAILURE
1100               abort-all-job: true
1101               git-revision: false
1102       - multijob:
1103           name: Yardstick
1104           condition: ALWAYS
1105           projects:
1106             - name: 'yardstick-apex-baremetal-daily-{stream}'
1107               node-parameters: true
1108               current-parameters: false
1109               predefined-parameters:
1110                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1111               kill-phase-on: NEVER
1112               abort-all-job: false
1113               git-revision: false
1114
1115 # Dovetail Danube test job
1116 - job-template:
1117     name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
1118
1119     project-type: 'multijob'
1120
1121     node: 'huawei-pod4'
1122
1123     disabled: false
1124
1125     parameters:
1126       - '{project}-defaults'
1127       - project-parameter:
1128           project: '{project}'
1129           branch: 'stable/danube'
1130       - apex-parameter:
1131           gs-pathname: '/danube'
1132       - string:
1133           name: DEPLOY_SCENARIO
1134           default: 'os-nosdn-nofeature-ha'
1135           description: "Scenario to deploy with."
1136
1137     properties:
1138       - logrotate-default
1139       - build-blocker:
1140           use-build-blocker: true
1141           block-level: 'NODE'
1142           blocking-jobs:
1143             - 'apex-verify.*'
1144             - 'apex-runner.*'
1145             - 'apex-.*-promote.*'
1146             - 'apex-run.*'
1147
1148     triggers:
1149       - timed: ''  # '0 1 * * *'
1150
1151     builders:
1152       - description-setter:
1153           description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
1154       - multijob:
1155           name: 'Baremetal Deploy'
1156           condition: SUCCESSFUL
1157           projects:
1158             - name: 'apex-deploy-baremetal-danube'
1159               node-parameters: true
1160               current-parameters: true
1161               predefined-parameters: |
1162                 OPNFV_CLEAN=yes
1163                 GERRIT_BRANCH=$GERRIT_BRANCH
1164                 GERRIT_REFSPEC=
1165                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1166               kill-phase-on: FAILURE
1167               abort-all-job: true
1168               git-revision: false
1169       - multijob:
1170           name: Dovetail
1171           condition: ALWAYS
1172           projects:
1173             - name: 'dovetail-apex-baremetal-proposed_tests-danube'
1174               node-parameters: true
1175               current-parameters: false
1176               predefined-parameters:
1177                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1178               kill-phase-on: NEVER
1179               abort-all-job: false
1180               git-revision: false
1181
1182 ########################
1183 # parameter macros
1184 ########################
1185 - parameter:
1186     name: apex-parameter
1187     parameters:
1188       - string:
1189           name: ARTIFACT_NAME
1190           default: 'latest'
1191           description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1192       - string:
1193           name: ARTIFACT_VERSION
1194           default: 'daily'
1195           description: "Artifact version type"
1196       - string:
1197           name: BUILD_DIRECTORY
1198           default: $WORKSPACE/.build
1199           description: "Directory where the build artifact will be located upon the completion of the build."
1200       - string:
1201           name: CACHE_DIRECTORY
1202           default: $HOME/opnfv/apex-cache{gs-pathname}
1203           description: "Directory where the cache to be used during the build is located."
1204       # yamllint disable rule:line-length
1205       - string:
1206           name: GIT_BASE
1207           default: https://gerrit.opnfv.org/gerrit/$PROJECT
1208           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1209       # yamllint enable rule:line-length
1210       - string:
1211           name: GS_PATHNAME
1212           default: '{gs-pathname}'
1213           description: "Version directory where opnfv artifacts are stored in gs repository"
1214       - string:
1215           name: GS_URL
1216           default: $GS_BASE{gs-pathname}
1217           description: "URL to Google Storage."
1218       - string:
1219           name: PROMOTE
1220           default: 'False'
1221           description: "Flag to know if we should promote/upload snapshot artifacts."
1222
1223 ########################
1224 # builder macros
1225 ########################
1226
1227 # fraser Builder
1228 - builder:
1229     name: apex-builder-fraser
1230     builders:
1231       - multijob:
1232           name: Baremetal Deploy and Test Phase
1233           condition: SUCCESSFUL
1234           projects:
1235             - name: 'apex-os-nosdn-nofeature-ha-baremetal-fraser'
1236               node-parameters: false
1237               current-parameters: false
1238               predefined-parameters: |
1239                 OPNFV_CLEAN=yes
1240               kill-phase-on: NEVER
1241               abort-all-job: true
1242               git-revision: false
1243             - name: 'apex-os-odl-bgpvpn-ha-baremetal-fraser'
1244               node-parameters: false
1245               current-parameters: false
1246               predefined-parameters: |
1247                 OPNFV_CLEAN=yes
1248               kill-phase-on: NEVER
1249               abort-all-job: true
1250               git-revision: false
1251
1252 # danube Builder
1253 - builder:
1254     name: apex-builder-danube
1255     builders:
1256       - multijob:
1257           name: Baremetal Deploy and Test Phase
1258           condition: SUCCESSFUL
1259           projects:
1260             - name: 'apex-os-nosdn-nofeature-noha-baremetal-danube'
1261               node-parameters: false
1262               current-parameters: false
1263               predefined-parameters: |
1264                 OPNFV_CLEAN=yes
1265               kill-phase-on: NEVER
1266               abort-all-job: true
1267               git-revision: false
1268             - name: 'apex-os-nosdn-nofeature-ha-baremetal-danube'
1269               node-parameters: false
1270               current-parameters: false
1271               predefined-parameters: |
1272                 OPNFV_CLEAN=yes
1273               kill-phase-on: NEVER
1274               abort-all-job: true
1275               git-revision: false
1276             - name: 'apex-os-nosdn-nofeature-ha-ipv6-baremetal-danube'
1277               node-parameters: false
1278               current-parameters: false
1279               predefined-parameters: |
1280                 OPNFV_CLEAN=yes
1281               kill-phase-on: NEVER
1282               abort-all-job: true
1283               git-revision: false
1284             - name: 'apex-os-nosdn-ovs-noha-baremetal-danube'
1285               node-parameters: false
1286               current-parameters: false
1287               predefined-parameters: |
1288                 OPNFV_CLEAN=yes
1289               kill-phase-on: NEVER
1290               abort-all-job: true
1291               git-revision: false
1292             - name: 'apex-os-nosdn-ovs-ha-baremetal-danube'
1293               node-parameters: false
1294               current-parameters: false
1295               predefined-parameters: |
1296                 OPNFV_CLEAN=yes
1297               kill-phase-on: NEVER
1298               abort-all-job: true
1299               git-revision: false
1300             - name: 'apex-os-nosdn-fdio-noha-baremetal-danube'
1301               node-parameters: false
1302               current-parameters: false
1303               predefined-parameters: |
1304                 OPNFV_CLEAN=yes
1305               kill-phase-on: NEVER
1306               abort-all-job: true
1307               git-revision: false
1308             - name: 'apex-os-nosdn-fdio-ha-baremetal-danube'
1309               node-parameters: false
1310               current-parameters: false
1311               predefined-parameters: |
1312                 OPNFV_CLEAN=yes
1313               kill-phase-on: NEVER
1314               abort-all-job: true
1315               git-revision: false
1316             - name: 'apex-os-nosdn-kvm-ha-baremetal-danube'
1317               node-parameters: false
1318               current-parameters: false
1319               predefined-parameters: |
1320                 OPNFV_CLEAN=yes
1321               kill-phase-on: NEVER
1322               abort-all-job: true
1323               git-revision: false
1324             - name: 'apex-os-nosdn-kvm-noha-baremetal-danube'
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-odl_l2-fdio-noha-baremetal-danube'
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-odl_l2-fdio-ha-baremetal-danube'
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_netvirt-fdio-noha-baremetal-danube'
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_l2-sfc-noha-baremetal-danube'
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-os-odl_l3-nofeature-noha-baremetal-danube'
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_l3-nofeature-ha-baremetal-danube'
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_l3-ovs-noha-baremetal-danube'
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_l3-ovs-ha-baremetal-danube'
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-bgpvpn-ha-baremetal-danube'
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-odl-gluon-noha-baremetal-danube'
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-odl_l3-fdio-noha-baremetal-danube'
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             - name: 'apex-os-odl_l3-fdio-ha-baremetal-danube'
1421               node-parameters: false
1422               current-parameters: false
1423               predefined-parameters: |
1424                 OPNFV_CLEAN=yes
1425               kill-phase-on: NEVER
1426               abort-all-job: true
1427               git-revision: false
1428             - name: 'apex-os-odl_l3-fdio_dvr-noha-baremetal-danube'
1429               node-parameters: false
1430               current-parameters: false
1431               predefined-parameters: |
1432                 OPNFV_CLEAN=yes
1433               kill-phase-on: NEVER
1434               abort-all-job: true
1435               git-revision: false
1436             - name: 'apex-os-odl_l3-fdio_dvr-ha-baremetal-danube'
1437               node-parameters: false
1438               current-parameters: false
1439               predefined-parameters: |
1440                 OPNFV_CLEAN=yes
1441               kill-phase-on: NEVER
1442               abort-all-job: true
1443               git-revision: false
1444             - name: 'apex-os-odl_l3-csit-noha-baremetal-danube'
1445               node-parameters: false
1446               current-parameters: false
1447               predefined-parameters: |
1448                 OPNFV_CLEAN=yes
1449               kill-phase-on: NEVER
1450               abort-all-job: true
1451               git-revision: false
1452             - name: 'apex-os-onos-nofeature-ha-baremetal-danube'
1453               node-parameters: false
1454               current-parameters: false
1455               predefined-parameters: |
1456                 OPNFV_CLEAN=yes
1457               kill-phase-on: NEVER
1458               abort-all-job: true
1459               git-revision: false
1460             - name: 'apex-os-ovn-nofeature-noha-baremetal-danube'
1461               node-parameters: false
1462               current-parameters: false
1463               predefined-parameters: |
1464                 OPNFV_CLEAN=yes
1465               kill-phase-on: NEVER
1466               abort-all-job: true
1467               git-revision: false
1468
1469 # master Builder
1470 - builder:
1471     name: apex-builder-master
1472     builders:
1473       - multijob:
1474           name: Baremetal Deploy and Test Phase
1475           condition: SUCCESSFUL
1476           projects:
1477             - name: 'apex-os-nosdn-nofeature-noha-baremetal-master'
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-nofeature-ha-baremetal-master'
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-odl-nofeature-noha-baremetal-master'
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-nofeature-ha-baremetal-master'
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-nosdn-queens-noha-baremetal-master'
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-nosdn-queens-ha-baremetal-master'
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-queens-noha-baremetal-master'
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-queens-ha-baremetal-master'
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-k8s-nosdn-nofeature-noha-baremetal-master'
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-bgpvpn-ha-baremetal-master'
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-bgpvpn-noha-baremetal-master'
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_queens-ha-baremetal-master'
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-bgpvpn_queens-noha-baremetal-master'
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
1582 # euphrates Builder
1583 - builder:
1584     name: apex-builder-euphrates
1585     builders:
1586       - multijob:
1587           name: Baremetal Deploy and Test Phase
1588           condition: SUCCESSFUL
1589           projects:
1590             - name: 'apex-os-nosdn-nofeature-noha-baremetal-euphrates'
1591               node-parameters: false
1592               current-parameters: false
1593               predefined-parameters: |
1594                 OPNFV_CLEAN=yes
1595               kill-phase-on: NEVER
1596               abort-all-job: true
1597               git-revision: false
1598             - name: 'apex-os-nosdn-nofeature-ha-baremetal-euphrates'
1599               node-parameters: false
1600               current-parameters: false
1601               predefined-parameters: |
1602                 OPNFV_CLEAN=yes
1603               kill-phase-on: NEVER
1604               abort-all-job: true
1605               git-revision: false
1606             - name: 'apex-os-odl-nofeature-ha-baremetal-euphrates'
1607               node-parameters: false
1608               current-parameters: false
1609               predefined-parameters: |
1610                 OPNFV_CLEAN=yes
1611               kill-phase-on: NEVER
1612               abort-all-job: true
1613               git-revision: false
1614             - name: 'apex-os-odl-nofeature-noha-baremetal-euphrates'
1615               node-parameters: false
1616               current-parameters: false
1617               predefined-parameters: |
1618                 OPNFV_CLEAN=yes
1619               kill-phase-on: NEVER
1620               abort-all-job: true
1621               git-revision: false
1622             - name: 'apex-os-odl-bgpvpn-ha-baremetal-euphrates'
1623               node-parameters: false
1624               current-parameters: false
1625               predefined-parameters: |
1626                 OPNFV_CLEAN=yes
1627               kill-phase-on: NEVER
1628               abort-all-job: true
1629               git-revision: false
1630             - name: 'apex-os-ovn-nofeature-noha-baremetal-euphrates'
1631               node-parameters: false
1632               current-parameters: false
1633               predefined-parameters: |
1634                 OPNFV_CLEAN=yes
1635               kill-phase-on: NEVER
1636               abort-all-job: true
1637               git-revision: false
1638             - name: 'apex-os-nosdn-fdio-noha-baremetal-euphrates'
1639               node-parameters: false
1640               current-parameters: false
1641               predefined-parameters: |
1642                 OPNFV_CLEAN=yes
1643               kill-phase-on: NEVER
1644               abort-all-job: true
1645               git-revision: false
1646             - name: 'apex-os-nosdn-fdio-ha-baremetal-euphrates'
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-bar-ha-baremetal-euphrates'
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-bar-noha-baremetal-euphrates'
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-nosdn-nofeature-ha-ipv6-baremetal-euphrates'
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-nosdn-ovs_dpdk-noha-baremetal-euphrates'
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-ovs_dpdk-ha-baremetal-euphrates'
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-kvm_ovs_dpdk-noha-baremetal-euphrates'
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-kvm_ovs_dpdk-ha-baremetal-euphrates'
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-sfc-noha-baremetal-euphrates'
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-sfc-ha-baremetal-euphrates'
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-os-nosdn-calipso-noha-baremetal-euphrates'
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 - builder:
1735     name: 'apex-upload-artifact'
1736     builders:
1737       - shell:
1738           !include-raw: ./apex-upload-artifact.sh
1739
1740 - builder:
1741     name: 'apex-download-artifact'
1742     builders:
1743       - shell:
1744           !include-raw: ./apex-download-artifact.sh
1745
1746 - builder:
1747     name: 'apex-deploy'
1748     builders:
1749       - shell:
1750           !include-raw: ./apex-deploy.sh
1751
1752 - builder:
1753     name: 'apex-fetch-logs'
1754     builders:
1755       - shell:
1756           !include-raw: ./apex-fetch-logs.sh
1757
1758 #######################
1759 # trigger macros
1760 ########################
1761 - trigger:
1762     name: 'apex-master'
1763     triggers:
1764       - timed: '0 0 1-31/2 * *'
1765
1766 - trigger:
1767     name: 'apex-fraser'
1768     triggers:
1769       - timed: '0 0 2-30/2 * *'
1770
1771 - trigger:
1772     name: 'apex-euphrates'
1773     triggers:
1774       - timed: '0 0 2-30/2 * *'
1775
1776 - trigger:
1777     name: 'apex-danube'
1778     triggers:
1779       - timed: '0 3 1 1 7'