Apex: fixes gate job param passing
[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 # Colorado Build
676 - job-template:
677     name: 'apex-build-colorado'
678
679     # Job template for builds
680     #
681     # Required Variables:
682     #     stream:    branch with - in place of / (eg. stable)
683     #     branch:    branch (eg. stable)
684     node: 'apex-daily-colorado'
685
686     disabled: false
687
688     concurrent: true
689
690     parameters:
691         - project-parameter:
692             project: '{project}'
693             branch: 'stable/colorado'
694         - apex-parameter:
695             gs-pathname: '/colorado'
696         - string:
697             name: GIT_BASE
698             default: https://gerrit.opnfv.org/gerrit/$PROJECT
699             description: "Used for overriding the GIT URL coming from parameters macro."
700
701     scm:
702         - git-scm
703
704     properties:
705         - logrotate-default
706         - build-blocker:
707             use-build-blocker: true
708             block-level: 'NODE'
709             blocking-jobs:
710                 - 'apex-deploy.*'
711         - throttle:
712             max-per-node: 1
713             max-total: 10
714             option: 'project'
715
716     builders:
717         - 'apex-build'
718         - 'apex-upload-artifact'
719
720
721 # Colorado FDIO Deploy
722 - job-template:
723     name: 'apex-deploy-baremetal-os-odl_l2-fdio-ha-colorado'
724
725     # Job template for baremetal deployment
726     #
727     # Required Variables:
728     #     stream:    branch with - in place of / (eg. stable)
729     #     branch:    branch (eg. stable)
730     node: 'lf-pod1'
731
732     disabled: false
733
734     scm:
735         - git-scm
736
737     parameters:
738         - project-parameter:
739             project: '{project}'
740             branch: 'stable/colorado'
741         - apex-parameter:
742             gs-pathname: '/colorado'
743         - string:
744             name: DEPLOY_SCENARIO
745             default: 'os-odl_l2-fdio-ha'
746             description: "Scenario to deploy with."
747
748     properties:
749         - logrotate-default
750         - build-blocker:
751             use-build-blocker: true
752             block-level: 'NODE'
753             blocking-jobs:
754                 - 'apex-verify.*'
755                 - 'apex-deploy.*'
756                 - 'apex-build.*'
757
758
759     builders:
760         - 'apex-deploy'
761         - 'apex-workspace-cleanup'
762
763 # Colorado FDIO Daily
764 - job-template:
765     name: 'apex-daily-colorado'
766
767     # Job template for daily build
768     #
769     # Required Variables:
770     #     stream:    branch with - in place of / (eg. stable)
771     #     branch:    branch (eg. stable)
772     node: 'apex-daily-colorado'
773
774     disabled: false
775
776     scm:
777         - git-scm
778
779     parameters:
780         - project-parameter:
781             project: '{project}'
782             branch: 'stable/colorado'
783         - apex-parameter:
784             gs-pathname: '/colorado'
785
786     properties:
787         - logrotate-default
788         - build-blocker:
789             use-build-blocker: true
790             block-level: 'NODE'
791             blocking-jobs:
792                 - 'apex-verify.*'
793                 - 'apex-deploy.*'
794                 - 'apex-build.*'
795                 - 'apex-runner.*'
796
797     triggers:
798         - 'apex-colorado'
799
800     builders:
801         - trigger-builds:
802           - project: 'apex-build-colorado'
803             git-revision: true
804             current-parameters: true
805             same-node: true
806             block: true
807         - trigger-builds:
808           - project: 'apex-deploy-baremetal-os-odl_l2-fdio-ha-colorado'
809             predefined-parameters: |
810               BUILD_DIRECTORY=apex-build-colorado/.build
811               OPNFV_CLEAN=yes
812             git-revision: true
813             same-node: true
814             block-thresholds:
815                 build-step-failure-threshold: 'never'
816             block: true
817         - trigger-builds:
818           - project: 'functest-apex-apex-daily-colorado-daily-colorado'
819             predefined-parameters:
820               DEPLOY_SCENARIO=os-odl_l2-fdio-ha
821             block: true
822             same-node: true
823             block-thresholds:
824                 build-step-failure-threshold: 'never'
825                 failure-threshold: 'never'
826                 unstable-threshold: 'FAILURE'
827
828 # CSIT promote
829 - job-template:
830     name: 'apex-csit-promote-daily-{stream}'
831
832     # Job template for promoting CSIT Snapshots
833     #
834     # Required Variables:
835     #     stream:    branch with - in place of / (eg. stable)
836     #     branch:    branch (eg. stable)
837     node: '{daily-slave}'
838
839     disabled: false
840
841     scm:
842         - git-scm
843
844     parameters:
845         - project-parameter:
846             project: '{project}'
847             branch: '{branch}'
848         - apex-parameter:
849             gs-pathname: '{gs-pathname}'
850
851     properties:
852         - build-blocker:
853             use-build-blocker: true
854             block-level: 'NODE'
855             blocking-jobs:
856                 - 'apex-verify.*'
857                 - 'apex-deploy.*'
858                 - 'apex-build.*'
859                 - 'apex-runner.*'
860                 - 'apex-daily.*'
861
862     triggers:
863         - timed: '0 12 * * 0'
864
865     builders:
866         - 'apex-build'
867         - trigger-builds:
868           - project: 'apex-deploy-virtual-os-odl_l3-csit-noha-{stream}'
869             predefined-parameters: |
870               BUILD_DIRECTORY=apex-csit-promote-daily-{stream}
871               OPNFV_CLEAN=yes
872             git-revision: false
873             block: true
874             same-node: true
875         - trigger-builds:
876           - project: 'functest-apex-{daily-slave}-suite-{stream}'
877             predefined-parameters: |
878               DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
879               FUNCTEST_SUITE_NAME=tempest_smoke_serial
880             block: true
881             same-node: true
882         - shell:
883             !include-raw-escape: ./apex-snapshot-create.sh
884         - shell:
885             !include-raw-escape: ./apex-upload-artifact.sh
886
887 - job-template:
888     name: 'apex-gs-clean-{stream}'
889
890     # Job template for clean
891     #
892     # Required Variables:
893     #     stream:    branch with - in place of / (eg. stable)
894     node: '{slave}'
895
896     disabled: false
897
898     parameters:
899         - project-parameter:
900             project: '{project}'
901             branch: '{branch}'
902         - apex-parameter:
903             gs-pathname: '{gs-pathname}'
904
905     builders:
906         - 'apex-gs-clean'
907
908     triggers:
909         - 'apex-gs-clean-{stream}'
910
911
912 ########################
913 # parameter macros
914 ########################
915 - parameter:
916     name: apex-parameter
917     parameters:
918         - string:
919             name: ARTIFACT_NAME
920             default: 'latest'
921             description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
922         - string:
923             name: ARTIFACT_VERSION
924             default: 'daily'
925             description: "Artifact version type"
926         - string:
927             name: BUILD_DIRECTORY
928             default: $WORKSPACE/build
929             description: "Directory where the build artifact will be located upon the completion of the build."
930         - string:
931             name: CACHE_DIRECTORY
932             default: $HOME/opnfv/cache{gs-pathname}
933             description: "Directory where the cache to be used during the build is located."
934         - string:
935             name: GIT_BASE
936             default: https://gerrit.opnfv.org/gerrit/$PROJECT
937             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
938         - string:
939             name: GS_PATHNAME
940             default: '{gs-pathname}'
941             description: "Version directory where opnfv artifacts are stored in gs repository"
942         - string:
943             name: GS_URL
944             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
945             description: "URL to Google Storage."
946
947 ########################
948 # builder macros
949 ########################
950 - builder:
951     name: 'apex-unit-test'
952     builders:
953         - shell:
954             !include-raw: ./apex-unit-test.sh
955
956 - builder:
957     name: 'apex-build'
958     builders:
959         - shell:
960             !include-raw: ./apex-build.sh
961
962 - builder:
963     name: 'apex-workspace-cleanup'
964     builders:
965         - shell:
966             !include-raw: ./apex-workspace-cleanup.sh
967
968 - builder:
969     name: 'apex-upload-artifact'
970     builders:
971         - shell:
972             !include-raw: ./apex-upload-artifact.sh
973
974 - builder:
975     name: 'apex-gs-cleanup'
976     builders:
977         - shell:
978             !include-raw: ./apex-gs-cleanup.sh
979
980 - builder:
981     name: 'apex-deploy'
982     builders:
983         - shell:
984             !include-raw: ./apex-deploy.sh
985
986
987 #######################
988 # trigger macros
989 ########################
990 - trigger:
991     name: 'apex-master'
992     triggers:
993         - timed: '0 3 * * *'
994 - trigger:
995     name: 'apex-colorado'
996     triggers:
997         - timed: '0 12 * * *'
998 - trigger:
999     name: 'apex-gs-clean-{stream}'
1000     triggers:
1001         - timed: '0 2 * * *'