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