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