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