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