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