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
687 # Baremetal test job
688 - job-template:
689     name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
690
691     project-type: 'multijob'
692
693     disabled: false
694
695     parameters:
696         - '{project}-defaults'
697         - '{project}-baremetal-{scenario_stream}-defaults'
698         - project-parameter:
699             project: '{project}'
700             branch: '{branch}'
701         - apex-parameter:
702             gs-pathname: '{gs-pathname}'
703         - string:
704             name: DEPLOY_SCENARIO
705             default: '{scenario}'
706             description: "Scenario to deploy with."
707     properties:
708         - logrotate-default
709         - build-blocker:
710             use-build-blocker: true
711             block-level: 'NODE'
712             blocking-jobs:
713                 - 'apex-verify.*'
714                 - 'apex-runner.*'
715                 - 'apex-.*-promote.*'
716                 - 'apex-run.*'
717                 - 'apex-testsuite-.+-baremetal-.+'
718         - throttle:
719             max-per-node: 1
720             max-total: 10
721             option: 'project'
722     builders:
723         - description-setter:
724             description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
725         - multijob:
726             name: Functest
727             condition: ALWAYS
728             projects:
729                 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
730                   node-parameters: true
731                   current-parameters: false
732                   predefined-parameters:
733                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
734                   kill-phase-on: NEVER
735                   abort-all-job: false
736                   git-revision: false
737         - multijob:
738             name: Yardstick
739             condition: ALWAYS
740             projects:
741                 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
742                   node-parameters: true
743                   current-parameters: false
744                   predefined-parameters:
745                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
746                   kill-phase-on: NEVER
747                   abort-all-job: false
748                   git-revision: false
749         - multijob:
750             name: Dovetail
751             condition: ALWAYS
752             projects:
753                 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
754                   node-parameters: true
755                   current-parameters: false
756                   predefined-parameters:
757                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
758                   kill-phase-on: NEVER
759                   enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
760                   abort-all-job: false
761                   git-revision: false
762         - conditional-step:
763             condition-kind: current-status
764             condition-worst: SUCCESS
765             condtion-best: SUCCESS
766             on-evaluation-failure: mark-unstable
767             steps:
768                 - shell: 'echo "Tests Passed"'
769 # Build status is always success due conditional plugin prefetching
770 # build status before multijob phases execute
771 #        - conditional-step:
772 #            condition-kind: current-status
773 #            condition-worst: SUCCESS
774 #            condtion-best: SUCCESS
775 #            on-evaluation-failure: mark-unstable
776 #            steps:
777 #                - shell: 'echo "Tests Passed"'
778
779     publishers:
780         - groovy-postbuild:
781             script:
782                 !include-raw-escape: ./update-build-result.groovy
783
784
785 # danube Daily
786 - job-template:
787     name: 'apex-daily-danube'
788
789     # Job template for daily build
790     #
791     # Required Variables:
792     #     stream:    branch with - in place of / (eg. stable)
793     #     branch:    branch (eg. stable)
794     project-type: 'multijob'
795
796     node: 'apex-baremetal-danube'
797
798     disabled: false
799
800     scm:
801         - git-scm
802
803     parameters:
804         - '{project}-defaults'
805         - '{project}-baremetal-danube-defaults'
806         - project-parameter:
807             project: '{project}'
808             branch: 'stable/danube'
809         - apex-parameter:
810             gs-pathname: '/danube'
811
812     properties:
813         - logrotate-default
814
815     triggers:
816         - 'apex-danube'
817
818     builders:
819         - multijob:
820             name: build
821             condition: SUCCESSFUL
822             projects:
823                 - name: 'apex-build-danube'
824                   current-parameters: false
825                   predefined-parameters: |
826                     GERRIT_BRANCH=$GERRIT_BRANCH
827                     GERRIT_REFSPEC=
828                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
829                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
830                   node-parameters: true
831                   kill-phase-on: FAILURE
832                   abort-all-job: true
833                   git-revision: true
834         - multijob:
835             name: 'Verify and upload ISO'
836             condition: SUCCESSFUL
837             projects:
838                 - name: 'apex-verify-iso-danube'
839                   current-parameters: false
840                   predefined-parameters: |
841                     BUILD_DIRECTORY=$WORKSPACE/../apex-build-danube/.build
842                     GERRIT_BRANCH=$GERRIT_BRANCH
843                     GERRIT_REFSPEC=
844                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
845                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
846                   node-parameters: true
847                   kill-phase-on: FAILURE
848                   abort-all-job: true
849                   git-revision: true
850         - multijob:
851             name: Baremetal Deploy and Test Phase
852             condition: SUCCESSFUL
853             projects:
854
855                 - name: 'apex-os-nosdn-nofeature-noha-baremetal-danube'
856                   node-parameters: false
857                   current-parameters: false
858                   predefined-parameters: |
859                     OPNFV_CLEAN=yes
860                   kill-phase-on: NEVER
861                   abort-all-job: true
862                   git-revision: false
863
864                 - name: 'apex-os-nosdn-nofeature-ha-baremetal-danube'
865                   node-parameters: false
866                   current-parameters: false
867                   predefined-parameters: |
868                     OPNFV_CLEAN=yes
869                   kill-phase-on: NEVER
870                   abort-all-job: true
871                   git-revision: false
872
873                 - name: 'apex-os-nosdn-nofeature-ha-ipv6-baremetal-danube'
874                   node-parameters: false
875                   current-parameters: false
876                   predefined-parameters: |
877                     OPNFV_CLEAN=yes
878                   kill-phase-on: NEVER
879                   abort-all-job: true
880                   git-revision: false
881
882                 - name: 'apex-os-nosdn-ovs-noha-baremetal-danube'
883                   node-parameters: false
884                   current-parameters: false
885                   predefined-parameters: |
886                     OPNFV_CLEAN=yes
887                   kill-phase-on: NEVER
888                   abort-all-job: true
889                   git-revision: false
890
891                 - name: 'apex-os-nosdn-ovs-ha-baremetal-danube'
892                   node-parameters: false
893                   current-parameters: false
894                   predefined-parameters: |
895                     OPNFV_CLEAN=yes
896                   kill-phase-on: NEVER
897                   abort-all-job: true
898                   git-revision: false
899
900                 - name: 'apex-os-nosdn-fdio-noha-baremetal-danube'
901                   node-parameters: false
902                   current-parameters: false
903                   predefined-parameters: |
904                     OPNFV_CLEAN=yes
905                   kill-phase-on: NEVER
906                   abort-all-job: true
907                   git-revision: false
908
909                 - name: 'apex-os-nosdn-fdio-ha-baremetal-danube'
910                   node-parameters: false
911                   current-parameters: false
912                   predefined-parameters: |
913                     OPNFV_CLEAN=yes
914                   kill-phase-on: NEVER
915                   abort-all-job: true
916                   git-revision: false
917
918                 - name: 'apex-os-nosdn-kvm-ha-baremetal-danube'
919                   node-parameters: false
920                   current-parameters: false
921                   predefined-parameters: |
922                     OPNFV_CLEAN=yes
923                   kill-phase-on: NEVER
924                   abort-all-job: true
925                   git-revision: false
926
927                 - name: 'apex-os-nosdn-kvm-noha-baremetal-danube'
928                   node-parameters: false
929                   current-parameters: false
930                   predefined-parameters: |
931                     OPNFV_CLEAN=yes
932                   kill-phase-on: NEVER
933                   abort-all-job: true
934                   git-revision: false
935
936                 - name: 'apex-os-odl_l2-fdio-noha-baremetal-danube'
937                   node-parameters: false
938                   current-parameters: false
939                   predefined-parameters: |
940                     OPNFV_CLEAN=yes
941                   kill-phase-on: NEVER
942                   abort-all-job: true
943                   git-revision: false
944
945                 - name: 'apex-os-odl_l2-fdio-ha-baremetal-danube'
946                   node-parameters: false
947                   current-parameters: false
948                   predefined-parameters: |
949                     OPNFV_CLEAN=yes
950                   kill-phase-on: NEVER
951                   abort-all-job: true
952                   git-revision: false
953
954                 - name: 'apex-os-odl_netvirt-fdio-noha-baremetal-danube'
955                   node-parameters: false
956                   current-parameters: false
957                   predefined-parameters: |
958                     OPNFV_CLEAN=yes
959                   kill-phase-on: NEVER
960                   abort-all-job: true
961                   git-revision: false
962
963                 - name: 'apex-os-odl_l2-sfc-noha-baremetal-danube'
964                   node-parameters: false
965                   current-parameters: false
966                   predefined-parameters: |
967                     OPNFV_CLEAN=yes
968                   kill-phase-on: NEVER
969                   abort-all-job: true
970                   git-revision: false
971
972                 - name: 'apex-os-odl_l3-nofeature-noha-baremetal-danube'
973                   node-parameters: false
974                   current-parameters: false
975                   predefined-parameters: |
976                     OPNFV_CLEAN=yes
977                   kill-phase-on: NEVER
978                   abort-all-job: true
979                   git-revision: false
980
981                 - name: 'apex-os-odl_l3-nofeature-ha-baremetal-danube'
982                   node-parameters: false
983                   current-parameters: false
984                   predefined-parameters: |
985                     OPNFV_CLEAN=yes
986                   kill-phase-on: NEVER
987                   abort-all-job: true
988                   git-revision: false
989
990                 - name: 'apex-os-odl_l3-ovs-noha-baremetal-danube'
991                   node-parameters: false
992                   current-parameters: false
993                   predefined-parameters: |
994                     OPNFV_CLEAN=yes
995                   kill-phase-on: NEVER
996                   abort-all-job: true
997                   git-revision: false
998
999                 - name: 'apex-os-odl_l3-ovs-ha-baremetal-danube'
1000                   node-parameters: false
1001                   current-parameters: false
1002                   predefined-parameters: |
1003                     OPNFV_CLEAN=yes
1004                   kill-phase-on: NEVER
1005                   abort-all-job: true
1006                   git-revision: false
1007
1008                 - name: 'apex-os-odl-bgpvpn-ha-baremetal-danube'
1009                   node-parameters: false
1010                   current-parameters: false
1011                   predefined-parameters: |
1012                     OPNFV_CLEAN=yes
1013                   kill-phase-on: NEVER
1014                   abort-all-job: true
1015                   git-revision: false
1016
1017                 - name: 'apex-os-odl-gluon-noha-baremetal-danube'
1018                   node-parameters: false
1019                   current-parameters: false
1020                   predefined-parameters: |
1021                     OPNFV_CLEAN=yes
1022                   kill-phase-on: NEVER
1023                   abort-all-job: true
1024                   git-revision: false
1025
1026                 - name: 'apex-os-odl_l3-fdio-noha-baremetal-danube'
1027                   node-parameters: false
1028                   current-parameters: false
1029                   predefined-parameters: |
1030                     OPNFV_CLEAN=yes
1031                   kill-phase-on: NEVER
1032                   abort-all-job: true
1033                   git-revision: false
1034
1035                 - name: 'apex-os-odl_l3-fdio-ha-baremetal-danube'
1036                   node-parameters: false
1037                   current-parameters: false
1038                   predefined-parameters: |
1039                     OPNFV_CLEAN=yes
1040                   kill-phase-on: NEVER
1041                   abort-all-job: true
1042                   git-revision: false
1043
1044                 - name: 'apex-os-odl_l3-fdio_dvr-noha-baremetal-danube'
1045                   node-parameters: false
1046                   current-parameters: false
1047                   predefined-parameters: |
1048                     OPNFV_CLEAN=yes
1049                   kill-phase-on: NEVER
1050                   abort-all-job: true
1051                   git-revision: false
1052
1053                 - name: 'apex-os-odl_l3-fdio_dvr-ha-baremetal-danube'
1054                   node-parameters: false
1055                   current-parameters: false
1056                   predefined-parameters: |
1057                     OPNFV_CLEAN=yes
1058                   kill-phase-on: NEVER
1059                   abort-all-job: true
1060                   git-revision: false
1061
1062                 - name: 'apex-os-odl_l3-csit-noha-baremetal-danube'
1063                   node-parameters: false
1064                   current-parameters: false
1065                   predefined-parameters: |
1066                     OPNFV_CLEAN=yes
1067                   kill-phase-on: NEVER
1068                   abort-all-job: true
1069                   git-revision: false
1070
1071                 - name: 'apex-os-onos-nofeature-ha-baremetal-danube'
1072                   node-parameters: false
1073                   current-parameters: false
1074                   predefined-parameters: |
1075                     OPNFV_CLEAN=yes
1076                   kill-phase-on: NEVER
1077                   abort-all-job: true
1078                   git-revision: false
1079
1080                 - name: 'apex-os-ovn-nofeature-noha-baremetal-danube'
1081                   node-parameters: false
1082                   current-parameters: false
1083                   predefined-parameters: |
1084                     OPNFV_CLEAN=yes
1085                   kill-phase-on: NEVER
1086                   abort-all-job: true
1087                   git-revision: false
1088
1089
1090 # master Daily
1091 - job-template:
1092     name: 'apex-daily-master'
1093
1094     # Job template for daily build
1095     #
1096     # Required Variables:
1097     #     stream:    branch with - in place of / (eg. stable)
1098     #     branch:    branch (eg. stable)
1099     project-type: 'multijob'
1100
1101     node: 'apex-baremetal-master'
1102
1103     disabled: false
1104
1105     scm:
1106         - git-scm
1107
1108     parameters:
1109         - '{project}-defaults'
1110         - '{project}-baremetal-master-defaults'
1111         - project-parameter:
1112             project: '{project}'
1113             branch: 'master'
1114         - apex-parameter:
1115             gs-pathname: ''
1116
1117     properties:
1118         - logrotate-default
1119
1120     triggers:
1121         - 'apex-master'
1122
1123     builders:
1124         - multijob:
1125             name: build
1126             condition: SUCCESSFUL
1127             projects:
1128                 - name: 'apex-build-master'
1129                   current-parameters: false
1130                   predefined-parameters: |
1131                     GERRIT_BRANCH=$GERRIT_BRANCH
1132                     GERRIT_REFSPEC=
1133                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1134                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1135                   node-parameters: true
1136                   kill-phase-on: FAILURE
1137                   abort-all-job: true
1138                   git-revision: true
1139         - multijob:
1140             name: 'Verify and upload ISO'
1141             condition: SUCCESSFUL
1142             projects:
1143                 - name: 'apex-verify-iso-master'
1144                   current-parameters: false
1145                   predefined-parameters: |
1146                     BUILD_DIRECTORY=$WORKSPACE/../apex-build-master/.build
1147                     GERRIT_BRANCH=$GERRIT_BRANCH
1148                     GERRIT_REFSPEC=
1149                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1150                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1151                   node-parameters: true
1152                   kill-phase-on: FAILURE
1153                   abort-all-job: true
1154                   git-revision: true
1155         - multijob:
1156             name: Baremetal Deploy and Test Phase
1157             condition: SUCCESSFUL
1158             projects:
1159
1160                 - name: 'apex-os-nosdn-nofeature-noha-baremetal-master'
1161                   node-parameters: false
1162                   current-parameters: false
1163                   predefined-parameters: |
1164                     OPNFV_CLEAN=yes
1165                   kill-phase-on: NEVER
1166                   abort-all-job: true
1167                   git-revision: false
1168
1169                 - name: 'apex-os-nosdn-nofeature-ha-baremetal-master'
1170                   node-parameters: false
1171                   current-parameters: false
1172                   predefined-parameters: |
1173                     OPNFV_CLEAN=yes
1174                   kill-phase-on: NEVER
1175                   abort-all-job: true
1176                   git-revision: false
1177
1178                 - name: 'apex-os-odl-nofeature-ha-baremetal-master'
1179                   node-parameters: false
1180                   current-parameters: false
1181                   predefined-parameters: |
1182                     OPNFV_CLEAN=yes
1183                   kill-phase-on: NEVER
1184                   abort-all-job: true
1185                   git-revision: false
1186
1187                 - name: 'apex-os-odl-nofeature-noha-baremetal-master'
1188                   node-parameters: false
1189                   current-parameters: false
1190                   predefined-parameters: |
1191                     OPNFV_CLEAN=yes
1192                   kill-phase-on: NEVER
1193                   abort-all-job: true
1194                   git-revision: false
1195
1196                 - name: 'apex-os-odl-bgpvpn-ha-baremetal-master'
1197                   node-parameters: false
1198                   current-parameters: false
1199                   predefined-parameters: |
1200                     OPNFV_CLEAN=yes
1201                   kill-phase-on: NEVER
1202                   abort-all-job: true
1203                   git-revision: false
1204
1205                 - name: 'apex-os-ovn-nofeature-noha-baremetal-master'
1206                   node-parameters: false
1207                   current-parameters: false
1208                   predefined-parameters: |
1209                     OPNFV_CLEAN=yes
1210                   kill-phase-on: NEVER
1211                   abort-all-job: true
1212                   git-revision: false
1213
1214                 - name: 'apex-os-nosdn-fdio-noha-baremetal-master'
1215                   node-parameters: false
1216                   current-parameters: false
1217                   predefined-parameters: |
1218                     OPNFV_CLEAN=yes
1219                   kill-phase-on: NEVER
1220                   abort-all-job: true
1221                   git-revision: false
1222
1223                 - name: 'apex-os-nosdn-fdio-ha-baremetal-master'
1224                   node-parameters: false
1225                   current-parameters: false
1226                   predefined-parameters: |
1227                     OPNFV_CLEAN=yes
1228                   kill-phase-on: NEVER
1229                   abort-all-job: true
1230                   git-revision: false
1231
1232                 - name: 'apex-os-odl-fdio-noha-baremetal-master'
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
1241                 - name: 'apex-os-odl-fdio-ha-baremetal-master'
1242                   node-parameters: false
1243                   current-parameters: false
1244                   predefined-parameters: |
1245                     OPNFV_CLEAN=yes
1246                   kill-phase-on: NEVER
1247                   abort-all-job: true
1248                   git-revision: false
1249
1250                 - name: 'apex-os-nosdn-bar-ha-baremetal-master'
1251                   node-parameters: false
1252                   current-parameters: false
1253                   predefined-parameters: |
1254                     OPNFV_CLEAN=yes
1255                   kill-phase-on: NEVER
1256                   abort-all-job: true
1257                   git-revision: false
1258
1259                 - name: 'apex-os-nosdn-bar-noha-baremetal-master'
1260                   node-parameters: false
1261                   current-parameters: false
1262                   predefined-parameters: |
1263                     OPNFV_CLEAN=yes
1264                   kill-phase-on: NEVER
1265                   abort-all-job: true
1266                   git-revision: false
1267
1268                 - name: 'apex-os-nosdn-nofeature-ha-ipv6-baremetal-master'
1269                   node-parameters: false
1270                   current-parameters: false
1271                   predefined-parameters: |
1272                     OPNFV_CLEAN=yes
1273                   kill-phase-on: NEVER
1274                   abort-all-job: true
1275                   git-revision: false
1276
1277
1278
1279 # snapshot create
1280 - job-template:
1281     name: 'apex-create-snapshot'
1282
1283     # Job template for clean
1284     #
1285     # Required Variables:
1286     #     stream:    branch with - in place of / (eg. stable)
1287
1288     disabled: false
1289
1290     builders:
1291         - shell:
1292             !include-raw-escape: ./apex-snapshot-create.sh
1293
1294 # snapshot upload
1295 - job-template:
1296     name: 'apex-upload-snapshot'
1297
1298     # Job template for clean
1299     #
1300     # Required Variables:
1301     #     stream:    branch with - in place of / (eg. stable)
1302
1303     disabled: false
1304
1305     builders:
1306         - inject:
1307            properties-content: ARTIFACT_TYPE=snapshot
1308         - 'apex-upload-artifact'
1309
1310 # CSIT promote
1311 - job-template:
1312     name: 'apex-csit-promote-daily-{stream}'
1313
1314     # Job template for promoting CSIT Snapshots
1315     #
1316     # Required Variables:
1317     #     stream:    branch with - in place of / (eg. stable)
1318     #     branch:    branch (eg. stable)
1319     node: '{virtual-slave}'
1320     project-type: 'multijob'
1321     disabled: false
1322
1323     scm:
1324         - git-scm
1325
1326     parameters:
1327         - project-parameter:
1328             project: '{project}'
1329             branch: '{branch}'
1330         - apex-parameter:
1331             gs-pathname: '{gs-pathname}'
1332
1333     properties:
1334         - build-blocker:
1335             use-build-blocker: true
1336             block-level: 'NODE'
1337             blocking-jobs:
1338                 - 'apex-verify.*'
1339                 - 'apex-deploy.*'
1340                 - 'apex-runner.*'
1341                 - 'apex-daily.*'
1342
1343     triggers:
1344         - timed: '0 12 * * 0'
1345
1346     builders:
1347         - multijob:
1348             name: build
1349             condition: SUCCESSFUL
1350             projects:
1351                 - name: 'apex-build-{stream}'
1352                   current-parameters: false
1353                   predefined-parameters: |
1354                     GERRIT_BRANCH=$GERRIT_BRANCH
1355                     GERRIT_REFSPEC=$GERRIT_REFSPEC
1356                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1357                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1358                   node-parameters: false
1359                   kill-phase-on: FAILURE
1360                   abort-all-job: true
1361                   git-revision: true
1362         - multijob:
1363             name: deploy-virtual
1364             condition: SUCCESSFUL
1365             projects:
1366                 - name: 'apex-deploy-virtual-{stream}'
1367                   current-parameters: false
1368                   predefined-parameters: |
1369                     DEPLOY_SCENARIO=os-odl_l3-csit-noha
1370                     OPNFV_CLEAN=yes
1371                     GERRIT_BRANCH=$GERRIT_BRANCH
1372                     GERRIT_REFSPEC=$GERRIT_REFSPEC
1373                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1374                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1375                     PROMOTE=True
1376                   node-parameters: true
1377                   kill-phase-on: FAILURE
1378                   abort-all-job: true
1379                   git-revision: false
1380         - multijob:
1381             name: functest-smoke
1382             condition: SUCCESSFUL
1383             projects:
1384               - name: 'functest-apex-virtual-suite-{stream}'
1385                 current-parameters: false
1386                 predefined-parameters: |
1387                   DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
1388                   FUNCTEST_SUITE_NAME=tempest_smoke_serial
1389                   GERRIT_BRANCH=$GERRIT_BRANCH
1390                   GERRIT_REFSPEC=$GERRIT_REFSPEC
1391                   GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1392                   GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1393                 node-parameters: true
1394                 kill-phase-on: FAILURE
1395                 abort-all-job: true
1396                 git-revision: false
1397         - multijob:
1398             name: create snapshot
1399             condition: SUCCESSFUL
1400             projects:
1401               - name: 'apex-create-snapshot'
1402                 current-parameters: false
1403                 predefined-parameters: |
1404                   SNAP_TYPE=csit
1405                 node-parameters: true
1406                 kill-phase-on: FAILURE
1407                 abort-all-job: true
1408                 git-revision: false
1409         - multijob:
1410             name: upload snapshot
1411             condition: SUCCESSFUL
1412             projects:
1413               - name: 'apex-upload-snapshot'
1414                 current-parameters: false
1415                 predefined-parameters: |
1416                   SNAP_TYPE=csit
1417                 node-parameters: true
1418                 kill-phase-on: FAILURE
1419                 abort-all-job: true
1420                 git-revision: false
1421
1422 # FDIO promote
1423 - job-template:
1424     name: 'apex-fdio-promote-daily-{stream}'
1425
1426     # Job template for promoting CSIT Snapshots
1427     #
1428     # Required Variables:
1429     #     stream:    branch with - in place of / (eg. stable)
1430     #     branch:    branch (eg. stable)
1431     node: '{virtual-slave}'
1432     project-type: 'multijob'
1433     disabled: false
1434
1435     scm:
1436         - git-scm
1437
1438     parameters:
1439         - project-parameter:
1440             project: '{project}'
1441             branch: '{branch}'
1442         - apex-parameter:
1443             gs-pathname: '{gs-pathname}'
1444
1445     properties:
1446         - build-blocker:
1447             use-build-blocker: true
1448             block-level: 'NODE'
1449             blocking-jobs:
1450                 - 'apex-verify.*'
1451                 - 'apex-deploy.*'
1452                 - 'apex-runner.*'
1453                 - 'apex-daily.*'
1454
1455     builders:
1456         - multijob:
1457             name: build
1458             condition: SUCCESSFUL
1459             projects:
1460                 - name: 'apex-build-{stream}'
1461                   current-parameters: false
1462                   predefined-parameters: |
1463                     GERRIT_BRANCH=$GERRIT_BRANCH
1464                     GERRIT_REFSPEC=$GERRIT_REFSPEC
1465                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1466                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1467                   node-parameters: false
1468                   kill-phase-on: FAILURE
1469                   abort-all-job: true
1470                   git-revision: true
1471         - multijob:
1472             name: deploy-virtual
1473             condition: SUCCESSFUL
1474             projects:
1475                 - name: 'apex-deploy-virtual-{stream}'
1476                   current-parameters: false
1477                   predefined-parameters: |
1478                     DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
1479                     OPNFV_CLEAN=yes
1480                     GERRIT_BRANCH=$GERRIT_BRANCH
1481                     GERRIT_REFSPEC=$GERRIT_REFSPEC
1482                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1483                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1484                     PROMOTE=True
1485                   node-parameters: true
1486                   kill-phase-on: FAILURE
1487                   abort-all-job: true
1488                   git-revision: false
1489         - multijob:
1490             name: create snapshot
1491             condition: SUCCESSFUL
1492             projects:
1493               - name: 'apex-create-snapshot'
1494                 current-parameters: false
1495                 predefined-parameters: |
1496                   SNAP_TYPE=fdio
1497                 node-parameters: true
1498                 kill-phase-on: FAILURE
1499                 abort-all-job: true
1500                 git-revision: false
1501         - multijob:
1502             name: upload snapshot
1503             condition: SUCCESSFUL
1504             projects:
1505               - name: 'apex-upload-snapshot'
1506                 current-parameters: false
1507                 predefined-parameters: |
1508                   SNAP_TYPE=fdio
1509                 node-parameters: true
1510                 kill-phase-on: FAILURE
1511                 abort-all-job: true
1512                 git-revision: false
1513
1514 ########################
1515 # parameter macros
1516 ########################
1517 - parameter:
1518     name: apex-parameter
1519     parameters:
1520         - string:
1521             name: ARTIFACT_NAME
1522             default: 'latest'
1523             description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1524         - string:
1525             name: ARTIFACT_VERSION
1526             default: 'daily'
1527             description: "Artifact version type"
1528         - string:
1529             name: BUILD_DIRECTORY
1530             default: $WORKSPACE/.build
1531             description: "Directory where the build artifact will be located upon the completion of the build."
1532         - string:
1533             name: CACHE_DIRECTORY
1534             default: $HOME/opnfv/apex-cache{gs-pathname}
1535             description: "Directory where the cache to be used during the build is located."
1536         - string:
1537             name: GIT_BASE
1538             default: https://gerrit.opnfv.org/gerrit/$PROJECT
1539             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1540         - string:
1541             name: GS_PATHNAME
1542             default: '{gs-pathname}'
1543             description: "Version directory where opnfv artifacts are stored in gs repository"
1544         - string:
1545             name: GS_URL
1546             default: $GS_BASE{gs-pathname}
1547             description: "URL to Google Storage."
1548         - string:
1549             name: PROMOTE
1550             default: 'False'
1551             description: "Flag to know if we should promote/upload snapshot artifacts."
1552
1553 ########################
1554 # builder macros
1555 ########################
1556 - builder:
1557     name: 'apex-unit-test'
1558     builders:
1559         - shell:
1560             !include-raw: ./apex-unit-test.sh
1561
1562 - builder:
1563     name: 'apex-build'
1564     builders:
1565         - shell:
1566             !include-raw: ./apex-build.sh
1567
1568 - builder:
1569     name: 'apex-workspace-cleanup'
1570     builders:
1571         - shell:
1572             !include-raw: ./apex-workspace-cleanup.sh
1573
1574 - builder:
1575     name: 'apex-iso-verify'
1576     builders:
1577         - shell:
1578             !include-raw: ./apex-iso-verify.sh
1579
1580
1581 - builder:
1582     name: 'apex-upload-artifact'
1583     builders:
1584         - shell:
1585             !include-raw: ./apex-upload-artifact.sh
1586
1587 - builder:
1588     name: 'apex-download-artifact'
1589     builders:
1590         - shell:
1591             !include-raw: ./apex-download-artifact.sh
1592
1593 - builder:
1594     name: 'apex-deploy'
1595     builders:
1596         - shell:
1597             !include-raw: ./apex-deploy.sh
1598
1599 #######################
1600 # trigger macros
1601 ########################
1602 - trigger:
1603     name: 'apex-master'
1604     triggers:
1605         - timed: '0 12 * * *'
1606 - trigger:
1607     name: 'apex-danube'
1608     triggers:
1609         - timed: '0 3 1 1 7'