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