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