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