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