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