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