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