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