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