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