Merge "Adding POSCA build job for Bottlenecks"
[releng.git] / jjb / apex / apex.yml
1 - project:
2     name: apex
3     jobs:
4         - 'apex-verify-{stream}'
5         - 'apex-verify-unit-tests-{stream}'
6         - 'apex-runner-{platform}-{scenario}-{stream}'
7         - 'apex-runner-cperf-{stream}'
8         - 'apex-build-{stream}'
9         - 'apex-deploy-virtual-{scenario}-{stream}'
10         - 'apex-deploy-baremetal-{scenario}-{stream}'
11         - 'apex-daily-{stream}'
12         - 'apex-daily-colorado'
13         - 'apex-build-colorado'
14         - 'apex-deploy-baremetal-os-odl_l2-fdio-ha-colorado'
15         - 'apex-csit-promote-daily-{stream}'
16
17     # stream:    branch with - in place of / (eg. stable-arno)
18     # branch:    branch (eg. stable/arno)
19     stream:
20         - master:
21             branch: 'master'
22             gs-pathname: ''
23             slave: 'lf-pod1'
24             verify-slave: 'apex-verify-master'
25             daily-slave: 'apex-daily-master'
26
27     project: 'apex'
28
29     scenario:
30          - 'os-nosdn-nofeature-noha'
31          - 'os-nosdn-nofeature-ha'
32          - 'os-nosdn-nofeature-ha-ipv6'
33          - 'os-nosdn-ovs-noha'
34          - 'os-nosdn-fdio-noha'
35          - 'os-nosdn-fdio-ha'
36          - 'os-odl_l2-fdio-ha'
37          - 'os-odl_l2-netvirt_gbp_fdio-noha'
38          - 'os-odl_l2-sfc-noha'
39          - 'os-odl_l3-nofeature-ha'
40          - 'os-odl-bgpvpn-ha'
41          - 'os-odl-gluon-noha'
42          - 'os-odl_l3-fdio-noha'
43          - 'os-odl_l3-fdio-ha'
44          - 'os-odl_l3-fdio_dvr-noha'
45          - 'os-odl_l3-fdio_dvr-ha'
46          - 'os-odl_l3-csit-noha'
47          - 'os-onos-nofeature-ha'
48
49     platform:
50          - 'baremetal'
51          - 'virtual'
52
53 # Unit Test
54 - job-template:
55     name: 'apex-verify-unit-tests-{stream}'
56
57     node: '{verify-slave}'
58
59     concurrent: true
60
61     parameters:
62         - apex-parameter:
63             gs-pathname: '{gs-pathname}'
64         - project-parameter:
65             project: '{project}'
66             branch: '{branch}'
67         - string:
68             name: GIT_BASE
69             default: https://gerrit.opnfv.org/gerrit/$PROJECT
70             description: "Used for overriding the GIT URL coming from parameters macro."
71
72     scm:
73         - git-scm-gerrit
74
75     triggers:
76         - gerrit:
77             server-name: 'gerrit.opnfv.org'
78             trigger-on:
79                 - patchset-created-event:
80                     exclude-drafts: 'false'
81                     exclude-trivial-rebase: 'false'
82                     exclude-no-code-change: 'true'
83                 - draft-published-event
84                 - comment-added-contains-event:
85                     comment-contains-value: 'recheck'
86                 - comment-added-contains-event:
87                     comment-contains-value: 'reverify'
88             projects:
89               - project-compare-type: 'ANT'
90                 project-pattern: 'apex'
91                 branches:
92                   - branch-compare-type: 'ANT'
93                     branch-pattern: '**/{branch}'
94                 file-paths:
95                   - compare-type: ANT
96                     pattern: 'tests/**'
97     properties:
98         - logrotate-default
99         - throttle:
100             max-per-node: 1
101             max-total: 10
102             option: 'project'
103
104     builders:
105         - 'apex-unit-test'
106
107 # Verify
108 - job-template:
109     name: 'apex-verify-{stream}'
110
111     node: '{verify-slave}'
112
113     concurrent: true
114
115     parameters:
116         - apex-parameter:
117             gs-pathname: '{gs-pathname}'
118         - project-parameter:
119             project: '{project}'
120             branch: '{branch}'
121         - string:
122             name: GIT_BASE
123             default: https://gerrit.opnfv.org/gerrit/$PROJECT
124             description: "Used for overriding the GIT URL coming from parameters macro."
125
126     scm:
127         - git-scm-gerrit
128
129     triggers:
130         - gerrit:
131             server-name: 'gerrit.opnfv.org'
132             trigger-on:
133                 - patchset-created-event:
134                     exclude-drafts: 'false'
135                     exclude-trivial-rebase: 'false'
136                     exclude-no-code-change: 'true'
137                 - draft-published-event
138                 - comment-added-contains-event:
139                     comment-contains-value: 'recheck'
140                 - comment-added-contains-event:
141                     comment-contains-value: 'reverify'
142             projects:
143               - project-compare-type: 'ANT'
144                 project-pattern: 'apex'
145                 branches:
146                   - branch-compare-type: 'ANT'
147                     branch-pattern: '**/{branch}'
148                 file-paths:
149                   - compare-type: ANT
150                     pattern: 'ci/**'
151                   - compare-type: ANT
152                     pattern: 'build/**'
153                   - compare-type: ANT
154                     pattern: 'lib/**'
155                   - compare-type: ANT
156                     pattern: 'config/**'
157
158     properties:
159         - logrotate-default
160         - build-blocker:
161             use-build-blocker: true
162             block-level: 'NODE'
163             blocking-jobs:
164                 - 'apex-daily.*'
165                 - 'apex-deploy.*'
166                 - 'apex-build.*'
167                 - 'apex-runner.*'
168                 - 'apex-verify.*'
169         - throttle:
170             max-per-node: 1
171             max-total: 10
172             option: 'project'
173
174     builders:
175         - 'apex-unit-test'
176         - 'apex-build'
177         - trigger-builds:
178           - project: 'apex-deploy-virtual-os-nosdn-nofeature-ha-{stream}'
179             predefined-parameters: |
180               BUILD_DIRECTORY=apex-verify-{stream}
181               OPNFV_CLEAN=yes
182             git-revision: false
183             block: true
184             same-node: true
185         - trigger-builds:
186           - project: 'functest-apex-{verify-slave}-suite-{stream}'
187             predefined-parameters: |
188               DEPLOY_SCENARIO=os-nosdn-nofeature-ha
189               FUNCTEST_SUITE_NAME=healthcheck
190             block: true
191             same-node: true
192         - trigger-builds:
193           - project: 'apex-deploy-virtual-os-odl_l3-nofeature-ha-{stream}'
194             predefined-parameters: |
195               BUILD_DIRECTORY=apex-verify-{stream}
196               OPNFV_CLEAN=yes
197             git-revision: false
198             block: true
199             same-node: true
200         - trigger-builds:
201           - project: 'functest-apex-{verify-slave}-suite-{stream}'
202             predefined-parameters: |
203               DEPLOY_SCENARIO=os-odl_l3-nofeature-ha
204               FUNCTEST_SUITE_NAME=healthcheck
205             block: true
206             same-node: true
207         - 'apex-workspace-cleanup'
208
209 - job-template:
210     name: 'apex-runner-{platform}-{scenario}-{stream}'
211
212     # runner jobs for deploying manually
213
214     node: '{slave}'
215
216     disabled: false
217
218     parameters:
219         - apex-parameter:
220             gs-pathname: '{gs-pathname}'
221         - project-parameter:
222             project: '{project}'
223             branch: '{branch}'
224         - string:
225             name: GIT_BASE
226             default: https://gerrit.opnfv.org/gerrit/$PROJECT
227             description: "Used for overriding the GIT URL coming from parameters macro."
228
229     scm:
230         - git-scm
231
232     properties:
233         - logrotate-default
234         - build-blocker:
235             use-build-blocker: true
236             blocking-jobs:
237                 - 'apex-daily.*'
238                 - 'apex-verify.*'
239                 - 'apex-csit.*'
240
241     builders:
242         - trigger-builds:
243           - project: 'apex-deploy-{platform}-{scenario}-{stream}'
244             predefined-parameters:
245               OPNFV_CLEAN=yes
246             git-revision: false
247             block: true
248         - trigger-builds:
249           - project: 'yardstick-apex-{slave}-daily-{stream}'
250             predefined-parameters:
251               DEPLOY_SCENARIO={scenario}
252             block: true
253             block-thresholds:
254                 build-step-failure-threshold: 'never'
255                 failure-threshold: 'never'
256                 unstable-threshold: 'FAILURE'
257         - trigger-builds:
258           - project: 'functest-apex-{slave}-daily-{stream}'
259             predefined-parameters:
260               DEPLOY_SCENARIO={scenario}
261             block: true
262             block-thresholds:
263                 build-step-failure-threshold: 'never'
264                 failure-threshold: 'never'
265                 unstable-threshold: 'FAILURE'
266
267 - job-template:
268     name: 'apex-runner-cperf-{stream}'
269
270     # runner cperf job
271
272     node: 'intel-pod2'
273
274     disabled: false
275
276     parameters:
277         - apex-parameter:
278             gs-pathname: '{gs-pathname}'
279         - project-parameter:
280             project: '{project}'
281             branch: '{branch}'
282         - string:
283             name: GIT_BASE
284             default: https://gerrit.opnfv.org/gerrit/$PROJECT
285             description: "Used for overriding the GIT URL coming from parameters macro."
286
287     scm:
288         - git-scm
289
290     properties:
291         - logrotate-default
292         - build-blocker:
293             use-build-blocker: false
294             block-level: 'NODE'
295             blocking-jobs:
296                 - 'apex-deploy.*'
297         - throttle:
298             max-per-node: 1
299             max-total: 10
300             option: 'project'
301
302     builders:
303         - trigger-builds:
304           - project: 'apex-deploy-baremetal-os-odl_l3-nofeature-ha-{stream}'
305             predefined-parameters:
306               OPNFV_CLEAN=yes
307             git-revision: false
308             block: true
309             same-node: true
310         - trigger-builds:
311           - project: 'cperf-apex-intel-pod2-daily-{stream}'
312             predefined-parameters:
313               DEPLOY_SCENARIO=os-odl_l3-nofeature-ha
314             block: true
315             same-node: true
316
317 - job-template:
318     name: 'apex-build-{stream}'
319
320     # Job template for builds
321     #
322     # Required Variables:
323     #     stream:    branch with - in place of / (eg. stable)
324     #     branch:    branch (eg. stable)
325     node: '{daily-slave}'
326
327     disabled: false
328
329     concurrent: true
330
331     parameters:
332         - project-parameter:
333             project: '{project}'
334             branch: '{branch}'
335         - apex-parameter:
336             gs-pathname: '{gs-pathname}'
337         - string:
338             name: GIT_BASE
339             default: https://gerrit.opnfv.org/gerrit/$PROJECT
340             description: "Used for overriding the GIT URL coming from parameters macro."
341
342     scm:
343         - git-scm
344
345     properties:
346         - logrotate-default
347         - build-blocker:
348             use-build-blocker: true
349             block-level: 'NODE'
350             blocking-jobs:
351                 - 'apex-deploy.*'
352         - throttle:
353             max-per-node: 1
354             max-total: 10
355             option: 'project'
356
357     builders:
358         - 'apex-build'
359         - trigger-builds:
360           - project: 'apex-deploy-virtual-os-nosdn-nofeature-noha-{stream}'
361             predefined-parameters: |
362               BUILD_DIRECTORY=apex-build-{stream}/.build
363               OPNFV_CLEAN=yes
364             git-revision: false
365             same-node: true
366             block: true
367         - 'apex-upload-artifact'
368
369 - job-template:
370     name: 'apex-deploy-virtual-{scenario}-{stream}'
371
372     # Job template for virtual deployment
373     #
374     # Required Variables:
375     #     stream:    branch with - in place of / (eg. stable)
376     #     branch:    branch (eg. stable)
377     node: '{slave}'
378
379     concurrent: true
380
381     disabled: false
382
383     scm:
384         - git-scm
385
386     parameters:
387         - project-parameter:
388             project: '{project}'
389             branch: '{branch}'
390         - apex-parameter:
391             gs-pathname: '{gs-pathname}'
392         - string:
393             name: DEPLOY_SCENARIO
394             default: '{scenario}'
395             description: "Scenario to deploy with."
396         - string:
397             name: OPNFV_CLEAN
398             default: 'no'
399             description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
400
401     properties:
402         - logrotate-default
403         - build-blocker:
404             use-build-blocker: true
405             block-level: 'NODE'
406             blocking-jobs:
407                 - 'apex-deploy.*'
408         - throttle:
409             max-per-node: 1
410             max-total: 10
411             option: 'project'
412
413     builders:
414         - 'apex-deploy'
415         - 'apex-workspace-cleanup'
416
417 - job-template:
418     name: 'apex-deploy-baremetal-{scenario}-{stream}'
419
420     # Job template for baremetal deployment
421     #
422     # Required Variables:
423     #     stream:    branch with - in place of / (eg. stable)
424     #     branch:    branch (eg. stable)
425     node: '{slave}'
426
427     disabled: false
428
429     scm:
430         - git-scm
431
432     parameters:
433         - project-parameter:
434             project: '{project}'
435             branch: '{branch}'
436         - apex-parameter:
437             gs-pathname: '{gs-pathname}'
438         - string:
439             name: DEPLOY_SCENARIO
440             default: '{scenario}'
441             description: "Scenario to deploy with."
442
443     properties:
444         - logrotate-default
445         - build-blocker:
446             use-build-blocker: true
447             block-level: 'NODE'
448             blocking-jobs:
449                 - 'apex-verify.*'
450                 - 'apex-deploy.*'
451                 - 'apex-build.*'
452
453
454     builders:
455         - 'apex-deploy'
456         - 'apex-workspace-cleanup'
457
458 # Daily
459 - job-template:
460     name: 'apex-daily-{stream}'
461
462     # Job template for daily build
463     #
464     # Required Variables:
465     #     stream:    branch with - in place of / (eg. stable)
466     #     branch:    branch (eg. stable)
467     node: '{daily-slave}'
468
469     disabled: false
470
471     scm:
472         - git-scm
473
474     parameters:
475         - project-parameter:
476             project: '{project}'
477             branch: '{branch}'
478         - apex-parameter:
479             gs-pathname: '{gs-pathname}'
480
481     properties:
482         - logrotate-default
483         - build-blocker:
484             use-build-blocker: true
485             block-level: 'NODE'
486             blocking-jobs:
487                 - 'apex-verify.*'
488                 - 'apex-deploy.*'
489                 - 'apex-build.*'
490                 - 'apex-runner.*'
491                 - 'apex-csit.*'
492
493     triggers:
494         - 'apex-{stream}'
495
496     builders:
497         - trigger-builds:
498           - project: 'apex-build-{stream}'
499             git-revision: true
500             current-parameters: true
501             same-node: true
502             block: true
503         - trigger-builds:
504           - project: 'apex-deploy-baremetal-os-nosdn-nofeature-ha-{stream}'
505             predefined-parameters: |
506               BUILD_DIRECTORY=apex-build-{stream}/.build
507               OPNFV_CLEAN=yes
508             git-revision: true
509             same-node: true
510             block-thresholds:
511                 build-step-failure-threshold: 'never'
512             block: true
513         - trigger-builds:
514           - project: 'functest-apex-{daily-slave}-daily-{stream}'
515             predefined-parameters:
516               DEPLOY_SCENARIO=os-nosdn-nofeature-ha
517             block: true
518             same-node: true
519             block-thresholds:
520                 build-step-failure-threshold: 'never'
521                 failure-threshold: 'never'
522                 unstable-threshold: 'FAILURE'
523         - trigger-builds:
524           - project: 'yardstick-apex-{slave}-daily-{stream}'
525             predefined-parameters:
526               DEPLOY_SCENARIO=os-nosdn-nofeature-ha
527             block: true
528             same-node: true
529             block-thresholds:
530                 build-step-failure-threshold: 'never'
531                 failure-threshold: 'never'
532                 unstable-threshold: 'FAILURE'
533         - trigger-builds:
534           - project: 'apex-deploy-baremetal-os-odl_l3-nofeature-ha-{stream}'
535             predefined-parameters: |
536               BUILD_DIRECTORY=apex-build-{stream}/.build
537               OPNFV_CLEAN=yes
538             git-revision: true
539             same-node: true
540             block-thresholds:
541                 build-step-failure-threshold: 'never'
542             block: true
543         - trigger-builds:
544           - project: 'functest-apex-{daily-slave}-daily-{stream}'
545             predefined-parameters:
546               DEPLOY_SCENARIO=os-odl_l3-nofeature-ha
547             block: true
548             same-node: true
549             block-thresholds:
550                 build-step-failure-threshold: 'never'
551                 failure-threshold: 'never'
552                 unstable-threshold: 'FAILURE'
553         - trigger-builds:
554           - project: 'yardstick-apex-{slave}-daily-{stream}'
555             predefined-parameters:
556               DEPLOY_SCENARIO=os-odl_l3-nofeature-ha
557             block: true
558             same-node: true
559             block-thresholds:
560                 build-step-failure-threshold: 'never'
561                 failure-threshold: 'never'
562                 unstable-threshold: 'FAILURE'
563         - trigger-builds:
564           - project: 'apex-deploy-baremetal-os-odl-bgpvpn-ha-{stream}'
565             predefined-parameters: |
566               BUILD_DIRECTORY=apex-build-{stream}/.build
567               OPNFV_CLEAN=yes
568             git-revision: true
569             same-node: true
570             block-thresholds:
571                 build-step-failure-threshold: 'never'
572             block: true
573         - trigger-builds:
574           - project: 'functest-apex-{daily-slave}-daily-{stream}'
575             predefined-parameters:
576               DEPLOY_SCENARIO=os-odl-bgpvpn-ha
577             block: true
578             same-node: true
579             block-thresholds:
580                 build-step-failure-threshold: 'never'
581                 failure-threshold: 'never'
582                 unstable-threshold: 'FAILURE'
583         - trigger-builds:
584           - project: 'yardstick-apex-{slave}-daily-{stream}'
585             predefined-parameters:
586               DEPLOY_SCENARIO=os-odl-bgpvpn-ha
587             block: true
588             same-node: true
589             block-thresholds:
590                 build-step-failure-threshold: 'never'
591                 failure-threshold: 'never'
592                 unstable-threshold: 'FAILURE'
593 # Colorado Build
594 - job-template:
595     name: 'apex-build-colorado'
596
597     # Job template for builds
598     #
599     # Required Variables:
600     #     stream:    branch with - in place of / (eg. stable)
601     #     branch:    branch (eg. stable)
602     node: 'apex-daily-colorado'
603
604     disabled: false
605
606     concurrent: true
607
608     parameters:
609         - project-parameter:
610             project: '{project}'
611             branch: 'stable/colorado'
612         - apex-parameter:
613             gs-pathname: '/colorado'
614         - string:
615             name: GIT_BASE
616             default: https://gerrit.opnfv.org/gerrit/$PROJECT
617             description: "Used for overriding the GIT URL coming from parameters macro."
618
619     scm:
620         - git-scm
621
622     properties:
623         - logrotate-default
624         - build-blocker:
625             use-build-blocker: true
626             block-level: 'NODE'
627             blocking-jobs:
628                 - 'apex-deploy.*'
629         - throttle:
630             max-per-node: 1
631             max-total: 10
632             option: 'project'
633
634     builders:
635         - 'apex-build'
636         - 'apex-upload-artifact'
637
638
639 # Colorado FDIO Deploy
640 - job-template:
641     name: 'apex-deploy-baremetal-os-odl_l2-fdio-ha-colorado'
642
643     # Job template for baremetal deployment
644     #
645     # Required Variables:
646     #     stream:    branch with - in place of / (eg. stable)
647     #     branch:    branch (eg. stable)
648     node: 'lf-pod1'
649
650     disabled: false
651
652     scm:
653         - git-scm
654
655     parameters:
656         - project-parameter:
657             project: '{project}'
658             branch: 'stable/colorado'
659         - apex-parameter:
660             gs-pathname: '/colorado'
661         - string:
662             name: DEPLOY_SCENARIO
663             default: 'os-odl_l2-fdio-ha'
664             description: "Scenario to deploy with."
665
666     properties:
667         - logrotate-default
668         - build-blocker:
669             use-build-blocker: true
670             block-level: 'NODE'
671             blocking-jobs:
672                 - 'apex-verify.*'
673                 - 'apex-deploy.*'
674                 - 'apex-build.*'
675
676
677     builders:
678         - 'apex-deploy'
679         - 'apex-workspace-cleanup'
680
681 # Colorado FDIO Daily
682 - job-template:
683     name: 'apex-daily-colorado'
684
685     # Job template for daily build
686     #
687     # Required Variables:
688     #     stream:    branch with - in place of / (eg. stable)
689     #     branch:    branch (eg. stable)
690     node: 'apex-daily-colorado'
691
692     disabled: false
693
694     scm:
695         - git-scm
696
697     parameters:
698         - project-parameter:
699             project: '{project}'
700             branch: 'stable/colorado'
701         - apex-parameter:
702             gs-pathname: '/colorado'
703
704     properties:
705         - logrotate-default
706         - build-blocker:
707             use-build-blocker: true
708             block-level: 'NODE'
709             blocking-jobs:
710                 - 'apex-verify.*'
711                 - 'apex-deploy.*'
712                 - 'apex-build.*'
713                 - 'apex-runner.*'
714
715     triggers:
716         - 'apex-colorado'
717
718     builders:
719         - trigger-builds:
720           - project: 'apex-build-colorado'
721             git-revision: true
722             current-parameters: true
723             same-node: true
724             block: true
725         - trigger-builds:
726           - project: 'apex-deploy-baremetal-os-odl_l2-fdio-ha-colorado'
727             predefined-parameters: |
728               BUILD_DIRECTORY=apex-build-colorado/.build
729               OPNFV_CLEAN=yes
730             git-revision: true
731             same-node: true
732             block-thresholds:
733                 build-step-failure-threshold: 'never'
734             block: true
735         - trigger-builds:
736           - project: 'functest-apex-apex-daily-colorado-daily-colorado'
737             predefined-parameters:
738               DEPLOY_SCENARIO=os-odl_l2-fdio-ha
739             block: true
740             same-node: true
741             block-thresholds:
742                 build-step-failure-threshold: 'never'
743                 failure-threshold: 'never'
744                 unstable-threshold: 'FAILURE'
745
746 # CSIT promote
747 - job-template:
748     name: 'apex-csit-promote-daily-{stream}'
749
750     # Job template for promoting CSIT Snapshots
751     #
752     # Required Variables:
753     #     stream:    branch with - in place of / (eg. stable)
754     #     branch:    branch (eg. stable)
755     node: '{daily-slave}'
756
757     disabled: false
758
759     scm:
760         - git-scm
761
762     parameters:
763         - project-parameter:
764             project: '{project}'
765             branch: '{branch}'
766         - apex-parameter:
767             gs-pathname: '{gs-pathname}'
768
769     properties:
770         - build-blocker:
771             use-build-blocker: true
772             block-level: 'NODE'
773             blocking-jobs:
774                 - 'apex-verify.*'
775                 - 'apex-deploy.*'
776                 - 'apex-build.*'
777                 - 'apex-runner.*'
778                 - 'apex-daily.*'
779
780     triggers:
781         - timed: '0 12 * * 0'
782
783     builders:
784         - 'apex-build'
785         - trigger-builds:
786           - project: 'apex-deploy-virtual-os-odl_l3-csit-noha-{stream}'
787             predefined-parameters: |
788               BUILD_DIRECTORY=apex-csit-promote-daily-{stream}
789               OPNFV_CLEAN=yes
790             git-revision: false
791             block: true
792             same-node: true
793         - trigger-builds:
794           - project: 'functest-apex-{daily-slave}-suite-{stream}'
795             predefined-parameters: |
796               DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
797               FUNCTEST_SUITE_NAME=tempest_smoke_serial
798             block: true
799             same-node: true
800         - shell:
801             !include-raw-escape: ./apex-snapshot-create.sh
802         - shell:
803             !include-raw-escape: ./apex-upload-artifact.sh
804
805 - job-template:
806     name: 'apex-gs-clean-{stream}'
807
808     # Job template for clean
809     #
810     # Required Variables:
811     #     stream:    branch with - in place of / (eg. stable)
812     node: '{slave}'
813
814     disabled: false
815
816     parameters:
817         - project-parameter:
818             project: '{project}'
819             branch: '{branch}'
820         - apex-parameter:
821             gs-pathname: '{gs-pathname}'
822
823     builders:
824         - 'apex-gs-clean'
825
826     triggers:
827         - 'apex-gs-clean-{stream}'
828
829
830 ########################
831 # parameter macros
832 ########################
833 - parameter:
834     name: apex-parameter
835     parameters:
836         - string:
837             name: ARTIFACT_NAME
838             default: 'latest'
839             description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
840         - string:
841             name: ARTIFACT_VERSION
842             default: 'daily'
843             description: "Artifact version type"
844         - string:
845             name: BUILD_DIRECTORY
846             default: $WORKSPACE/build
847             description: "Directory where the build artifact will be located upon the completion of the build."
848         - string:
849             name: CACHE_DIRECTORY
850             default: $HOME/opnfv/cache{gs-pathname}
851             description: "Directory where the cache to be used during the build is located."
852         - string:
853             name: GIT_BASE
854             default: https://gerrit.opnfv.org/gerrit/$PROJECT
855             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
856         - string:
857             name: GS_PATHNAME
858             default: '{gs-pathname}'
859             description: "Version directory where opnfv artifacts are stored in gs repository"
860         - string:
861             name: GS_URL
862             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
863             description: "URL to Google Storage."
864
865 ########################
866 # builder macros
867 ########################
868 - builder:
869     name: 'apex-unit-test'
870     builders:
871         - shell:
872             !include-raw: ./apex-unit-test.sh
873
874 - builder:
875     name: 'apex-build'
876     builders:
877         - shell:
878             !include-raw: ./apex-build.sh
879
880 - builder:
881     name: 'apex-workspace-cleanup'
882     builders:
883         - shell:
884             !include-raw: ./apex-workspace-cleanup.sh
885
886 - builder:
887     name: 'apex-upload-artifact'
888     builders:
889         - shell:
890             !include-raw: ./apex-upload-artifact.sh
891
892 - builder:
893     name: 'apex-gs-cleanup'
894     builders:
895         - shell:
896             !include-raw: ./apex-gs-cleanup.sh
897
898 - builder:
899     name: 'apex-deploy'
900     builders:
901         - shell:
902             !include-raw: ./apex-deploy.sh
903
904
905 #######################
906 # trigger macros
907 ########################
908 - trigger:
909     name: 'apex-master'
910     triggers:
911         - timed: '0 3 * * *'
912 - trigger:
913     name: 'apex-colorado'
914     triggers:
915         - timed: '0 12 * * *'
916 - trigger:
917     name: 'apex-gs-clean-{stream}'
918     triggers:
919         - timed: '0 2 * * *'