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