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