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