[compass] add job to verify k8s deploy
[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         # 1.dovetail only master by now, not sync with A/B/C branches
603         # 2.here the stream means the SUT stream, dovetail stream is defined in its own job
604         # 3.only debug testsuite here(includes basic testcase,
605         #   i.e. one tempest smoke ipv6, two vping from functest)
606         # 4.not used for release criteria or compliance,
607         #   only to debug the dovetail tool bugs with apex
608         - trigger-builds:
609             - project: 'dovetail-apex-{slave}-debug-{stream}'
610               current-parameters: false
611               predefined-parameters:
612                 DEPLOY_SCENARIO=os-nosdn-nofeature-ha
613               block: true
614               same-node: true
615               block-thresholds:
616                 build-step-failure-threshold: 'never'
617                 failure-threshold: 'never'
618                 unstable-threshold: 'FAILURE'
619         - trigger-builds:
620           - project: 'apex-deploy-baremetal-os-odl_l3-nofeature-ha-{stream}'
621             predefined-parameters: |
622               BUILD_DIRECTORY=apex-build-{stream}/.build
623               OPNFV_CLEAN=yes
624             git-revision: true
625             same-node: true
626             block-thresholds:
627                 build-step-failure-threshold: 'never'
628             block: true
629         - trigger-builds:
630           - project: 'functest-apex-{daily-slave}-daily-{stream}'
631             predefined-parameters:
632               DEPLOY_SCENARIO=os-odl_l3-nofeature-ha
633             block: true
634             same-node: true
635             block-thresholds:
636                 build-step-failure-threshold: 'never'
637                 failure-threshold: 'never'
638                 unstable-threshold: 'FAILURE'
639         - trigger-builds:
640           - project: 'yardstick-apex-{slave}-daily-{stream}'
641             predefined-parameters:
642               DEPLOY_SCENARIO=os-odl_l3-nofeature-ha
643             block: true
644             same-node: true
645             block-thresholds:
646                 build-step-failure-threshold: 'never'
647                 failure-threshold: 'never'
648                 unstable-threshold: 'FAILURE'
649         - trigger-builds:
650           - project: 'apex-deploy-baremetal-os-odl-bgpvpn-ha-{stream}'
651             predefined-parameters: |
652               BUILD_DIRECTORY=apex-build-{stream}/.build
653               OPNFV_CLEAN=yes
654             git-revision: true
655             same-node: true
656             block-thresholds:
657                 build-step-failure-threshold: 'never'
658             block: true
659         - trigger-builds:
660           - project: 'functest-apex-{daily-slave}-daily-{stream}'
661             predefined-parameters:
662               DEPLOY_SCENARIO=os-odl-bgpvpn-ha
663             block: true
664             same-node: true
665             block-thresholds:
666                 build-step-failure-threshold: 'never'
667                 failure-threshold: 'never'
668                 unstable-threshold: 'FAILURE'
669         - trigger-builds:
670           - project: 'yardstick-apex-{slave}-daily-{stream}'
671             predefined-parameters:
672               DEPLOY_SCENARIO=os-odl-bgpvpn-ha
673             block: true
674             same-node: true
675             block-thresholds:
676                 build-step-failure-threshold: 'never'
677                 failure-threshold: 'never'
678                 unstable-threshold: 'FAILURE'
679         - trigger-builds:
680           - project: 'apex-deploy-baremetal-os-odl-gluon-noha-{stream}'
681             predefined-parameters: |
682               BUILD_DIRECTORY=apex-build-{stream}/.build
683               OPNFV_CLEAN=yes
684             git-revision: true
685             same-node: true
686             block-thresholds:
687                 build-step-failure-threshold: 'never'
688             block: true
689         - trigger-builds:
690           - project: 'functest-apex-{daily-slave}-daily-{stream}'
691             predefined-parameters:
692               DEPLOY_SCENARIO=os-odl-gluon-noha
693             block: true
694             same-node: true
695             block-thresholds:
696                 build-step-failure-threshold: 'never'
697                 failure-threshold: 'never'
698                 unstable-threshold: 'FAILURE'
699         - trigger-builds:
700           - project: 'yardstick-apex-{slave}-daily-{stream}'
701             predefined-parameters:
702               DEPLOY_SCENARIO=os-odl-gluon-noha
703             block: true
704             same-node: true
705             block-thresholds:
706                 build-step-failure-threshold: 'never'
707                 failure-threshold: 'never'
708                 unstable-threshold: 'FAILURE'
709         - trigger-builds:
710           - project: 'apex-deploy-baremetal-os-odl_l2-fdio-noha-{stream}'
711             predefined-parameters: |
712               BUILD_DIRECTORY=apex-build-{stream}/.build
713               OPNFV_CLEAN=yes
714             git-revision: true
715             same-node: true
716             block-thresholds:
717                 build-step-failure-threshold: 'never'
718             block: true
719         - trigger-builds:
720           - project: 'functest-apex-{daily-slave}-daily-{stream}'
721             predefined-parameters:
722               DEPLOY_SCENARIO=os-odl_l2-fdio-noha
723             block: true
724             same-node: true
725             block-thresholds:
726                 build-step-failure-threshold: 'never'
727                 failure-threshold: 'never'
728                 unstable-threshold: 'FAILURE'
729         - trigger-builds:
730           - project: 'yardstick-apex-{slave}-daily-{stream}'
731             predefined-parameters:
732               DEPLOY_SCENARIO=os-odl_l2-fdio-noha
733             block: true
734             same-node: true
735             block-thresholds:
736                 build-step-failure-threshold: 'never'
737                 failure-threshold: 'never'
738                 unstable-threshold: 'FAILURE'
739         - trigger-builds:
740           - project: 'apex-deploy-baremetal-os-odl_l2-fdio-ha-{stream}'
741             predefined-parameters: |
742               BUILD_DIRECTORY=apex-build-{stream}/.build
743               OPNFV_CLEAN=yes
744             git-revision: true
745             same-node: true
746             block-thresholds:
747                 build-step-failure-threshold: 'never'
748             block: true
749         - trigger-builds:
750           - project: 'functest-apex-{daily-slave}-daily-{stream}'
751             predefined-parameters:
752               DEPLOY_SCENARIO=os-odl_l2-fdio-ha
753             block: true
754             same-node: true
755             block-thresholds:
756                 build-step-failure-threshold: 'never'
757                 failure-threshold: 'never'
758                 unstable-threshold: 'FAILURE'
759         - trigger-builds:
760           - project: 'yardstick-apex-{slave}-daily-{stream}'
761             predefined-parameters:
762               DEPLOY_SCENARIO=os-odl_l2-fdio-ha
763             block: true
764             same-node: true
765             block-thresholds:
766                 build-step-failure-threshold: 'never'
767                 failure-threshold: 'never'
768                 unstable-threshold: 'FAILURE'
769
770 # Colorado Build
771 - job-template:
772     name: 'apex-build-colorado'
773
774     # Job template for builds
775     #
776     # Required Variables:
777     #     stream:    branch with - in place of / (eg. stable)
778     #     branch:    branch (eg. stable)
779     node: 'apex-daily-colorado'
780
781     disabled: false
782
783     concurrent: true
784
785     parameters:
786         - project-parameter:
787             project: '{project}'
788             branch: 'stable/colorado'
789         - apex-parameter:
790             gs-pathname: '/colorado'
791         - string:
792             name: GIT_BASE
793             default: https://gerrit.opnfv.org/gerrit/$PROJECT
794             description: "Used for overriding the GIT URL coming from parameters macro."
795
796     scm:
797         - git-scm
798
799     properties:
800         - logrotate-default
801         - build-blocker:
802             use-build-blocker: true
803             block-level: 'NODE'
804             blocking-jobs:
805                 - 'apex-deploy.*'
806         - throttle:
807             max-per-node: 1
808             max-total: 10
809             option: 'project'
810
811     builders:
812         - 'apex-build'
813         - 'apex-upload-artifact'
814
815
816 # Colorado FDIO Deploy
817 - job-template:
818     name: 'apex-deploy-baremetal-os-odl_l2-fdio-ha-colorado'
819
820     # Job template for baremetal deployment
821     #
822     # Required Variables:
823     #     stream:    branch with - in place of / (eg. stable)
824     #     branch:    branch (eg. stable)
825     node: 'lf-pod1'
826
827     disabled: false
828
829     scm:
830         - git-scm
831
832     parameters:
833         - project-parameter:
834             project: '{project}'
835             branch: 'stable/colorado'
836         - apex-parameter:
837             gs-pathname: '/colorado'
838         - string:
839             name: DEPLOY_SCENARIO
840             default: 'os-odl_l2-fdio-ha'
841             description: "Scenario to deploy with."
842
843     properties:
844         - logrotate-default
845         - build-blocker:
846             use-build-blocker: true
847             block-level: 'NODE'
848             blocking-jobs:
849                 - 'apex-verify.*'
850                 - 'apex-deploy.*'
851                 - 'apex-build.*'
852
853
854     builders:
855         - 'apex-deploy'
856         - 'apex-workspace-cleanup'
857
858 # Colorado FDIO Daily
859 - job-template:
860     name: 'apex-daily-colorado'
861
862     # Job template for daily build
863     #
864     # Required Variables:
865     #     stream:    branch with - in place of / (eg. stable)
866     #     branch:    branch (eg. stable)
867     node: 'apex-daily-colorado'
868
869     disabled: false
870
871     scm:
872         - git-scm
873
874     parameters:
875         - project-parameter:
876             project: '{project}'
877             branch: 'stable/colorado'
878         - apex-parameter:
879             gs-pathname: '/colorado'
880
881     properties:
882         - logrotate-default
883         - build-blocker:
884             use-build-blocker: true
885             block-level: 'NODE'
886             blocking-jobs:
887                 - 'apex-verify.*'
888                 - 'apex-deploy.*'
889                 - 'apex-build.*'
890                 - 'apex-runner.*'
891
892     triggers:
893         - 'apex-colorado'
894
895     builders:
896         - trigger-builds:
897           - project: 'apex-build-colorado'
898             git-revision: true
899             current-parameters: true
900             same-node: true
901             block: true
902         - trigger-builds:
903           - project: 'apex-deploy-baremetal-os-odl_l2-fdio-ha-colorado'
904             predefined-parameters: |
905               BUILD_DIRECTORY=apex-build-colorado/.build
906               OPNFV_CLEAN=yes
907             git-revision: true
908             same-node: true
909             block-thresholds:
910                 build-step-failure-threshold: 'never'
911             block: true
912         - trigger-builds:
913           - project: 'functest-apex-apex-daily-colorado-daily-colorado'
914             predefined-parameters:
915               DEPLOY_SCENARIO=os-odl_l2-fdio-ha
916             block: true
917             same-node: true
918             block-thresholds:
919                 build-step-failure-threshold: 'never'
920                 failure-threshold: 'never'
921                 unstable-threshold: 'FAILURE'
922
923 # CSIT promote
924 - job-template:
925     name: 'apex-csit-promote-daily-{stream}'
926
927     # Job template for promoting CSIT Snapshots
928     #
929     # Required Variables:
930     #     stream:    branch with - in place of / (eg. stable)
931     #     branch:    branch (eg. stable)
932     node: '{daily-slave}'
933
934     disabled: false
935
936     scm:
937         - git-scm
938
939     parameters:
940         - project-parameter:
941             project: '{project}'
942             branch: '{branch}'
943         - apex-parameter:
944             gs-pathname: '{gs-pathname}'
945
946     properties:
947         - build-blocker:
948             use-build-blocker: true
949             block-level: 'NODE'
950             blocking-jobs:
951                 - 'apex-verify.*'
952                 - 'apex-deploy.*'
953                 - 'apex-build.*'
954                 - 'apex-runner.*'
955                 - 'apex-daily.*'
956
957     triggers:
958         - timed: '0 12 * * 0'
959
960     builders:
961         - 'apex-build'
962         - trigger-builds:
963           - project: 'apex-deploy-virtual-os-odl_l3-csit-noha-{stream}'
964             predefined-parameters: |
965               BUILD_DIRECTORY=apex-csit-promote-daily-{stream}
966               OPNFV_CLEAN=yes
967             git-revision: false
968             block: true
969             same-node: true
970         - trigger-builds:
971           - project: 'functest-apex-{daily-slave}-suite-{stream}'
972             predefined-parameters: |
973               DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
974               FUNCTEST_SUITE_NAME=tempest_smoke_serial
975             block: true
976             same-node: true
977         - shell:
978             !include-raw-escape: ./apex-snapshot-create.sh
979         - shell:
980             !include-raw-escape: ./apex-upload-artifact.sh
981
982 # FDIO promote
983 - job-template:
984     name: 'apex-fdio-promote-daily-{stream}'
985
986     # Job template for promoting CSIT Snapshots
987     #
988     # Required Variables:
989     #     stream:    branch with - in place of / (eg. stable)
990     #     branch:    branch (eg. stable)
991     node: '{daily-slave}'
992
993     disabled: false
994
995     scm:
996         - git-scm
997
998     parameters:
999         - project-parameter:
1000             project: '{project}'
1001             branch: '{branch}'
1002         - apex-parameter:
1003             gs-pathname: '{gs-pathname}'
1004
1005     properties:
1006         - build-blocker:
1007             use-build-blocker: true
1008             block-level: 'NODE'
1009             blocking-jobs:
1010                 - 'apex-verify.*'
1011                 - 'apex-deploy.*'
1012                 - 'apex-build.*'
1013                 - 'apex-runner.*'
1014                 - 'apex-daily.*'
1015
1016     builders:
1017         - 'apex-build'
1018         - trigger-builds:
1019           - project: 'apex-deploy-virtual-os-odl_l2-fdio-noha-{stream}'
1020             predefined-parameters: |
1021               BUILD_DIRECTORY=apex-fdio-promote-daily-{stream}
1022               OPNFV_CLEAN=yes
1023             git-revision: false
1024             block: true
1025             same-node: true
1026         - shell:
1027             !include-raw-escape: ./apex-snapshot-create.sh
1028         - shell:
1029             !include-raw-escape: ./apex-upload-artifact.sh
1030
1031 - job-template:
1032     name: 'apex-gs-clean-{stream}'
1033
1034     # Job template for clean
1035     #
1036     # Required Variables:
1037     #     stream:    branch with - in place of / (eg. stable)
1038     node: '{slave}'
1039
1040     disabled: false
1041
1042     parameters:
1043         - project-parameter:
1044             project: '{project}'
1045             branch: '{branch}'
1046         - apex-parameter:
1047             gs-pathname: '{gs-pathname}'
1048
1049     builders:
1050         - 'apex-gs-clean'
1051
1052     triggers:
1053         - 'apex-gs-clean-{stream}'
1054
1055
1056 ########################
1057 # parameter macros
1058 ########################
1059 - parameter:
1060     name: apex-parameter
1061     parameters:
1062         - string:
1063             name: ARTIFACT_NAME
1064             default: 'latest'
1065             description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1066         - string:
1067             name: ARTIFACT_VERSION
1068             default: 'daily'
1069             description: "Artifact version type"
1070         - string:
1071             name: BUILD_DIRECTORY
1072             default: $WORKSPACE/build
1073             description: "Directory where the build artifact will be located upon the completion of the build."
1074         - string:
1075             name: CACHE_DIRECTORY
1076             default: $HOME/opnfv/cache{gs-pathname}
1077             description: "Directory where the cache to be used during the build is located."
1078         - string:
1079             name: GIT_BASE
1080             default: https://gerrit.opnfv.org/gerrit/$PROJECT
1081             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1082         - string:
1083             name: GS_PATHNAME
1084             default: '{gs-pathname}'
1085             description: "Version directory where opnfv artifacts are stored in gs repository"
1086         - string:
1087             name: GS_URL
1088             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
1089             description: "URL to Google Storage."
1090
1091 ########################
1092 # builder macros
1093 ########################
1094 - builder:
1095     name: 'apex-unit-test'
1096     builders:
1097         - shell:
1098             !include-raw: ./apex-unit-test.sh
1099
1100 - builder:
1101     name: 'apex-build'
1102     builders:
1103         - shell:
1104             !include-raw: ./apex-build.sh
1105
1106 - builder:
1107     name: 'apex-workspace-cleanup'
1108     builders:
1109         - shell:
1110             !include-raw: ./apex-workspace-cleanup.sh
1111
1112 - builder:
1113     name: 'apex-upload-artifact'
1114     builders:
1115         - shell:
1116             !include-raw: ./apex-upload-artifact.sh
1117
1118 - builder:
1119     name: 'apex-gs-cleanup'
1120     builders:
1121         - shell:
1122             !include-raw: ./apex-gs-cleanup.sh
1123
1124 - builder:
1125     name: 'apex-deploy'
1126     builders:
1127         - shell:
1128             !include-raw: ./apex-deploy.sh
1129
1130
1131 #######################
1132 # trigger macros
1133 ########################
1134 - trigger:
1135     name: 'apex-master'
1136     triggers:
1137         - timed: '0 3 * * *'
1138 - trigger:
1139     name: 'apex-colorado'
1140     triggers:
1141         - timed: '0 12 * * *'
1142 - trigger:
1143     name: 'apex-gs-clean-{stream}'
1144     triggers:
1145         - timed: '0 2 * * *'