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