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