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