Merge "Bugfix: Dovetail CI fail because of no env variable and wrong results path"
[releng.git] / jjb / apex / apex.yml
1 - project:
2     name: 'apex'
3     project: 'apex'
4     jobs:
5         - 'apex-verify-{stream}'
6         - 'apex-verify-gate-{stream}'
7         - 'apex-verify-unit-tests-{stream}'
8         - 'apex-runner-cperf-{stream}'
9         - 'apex-build-{stream}'
10         - 'apex-deploy-{platform}-{stream}'
11         - 'apex-daily-master'
12         - 'apex-daily-danube'
13         - 'apex-csit-promote-daily-{stream}'
14         - 'apex-fdio-promote-daily-{stream}'
15         - 'apex-verify-iso-{stream}'
16         - 'apex-run-deploy-test-baremetal-{stream}'
17         - 'apex-upload-snapshot'
18         - 'apex-create-snapshot'
19     # stream:    branch with - in place of / (eg. stable-arno)
20     # branch:    branch (eg. stable/arno)
21     stream:
22         - master:
23             branch: 'master'
24             gs-pathname: ''
25             build-slave: 'apex-build-master'
26             virtual-slave: 'apex-virtual-master'
27             baremetal-slave: 'apex-baremetal-master'
28             verify-scenario: 'os-odl-nofeature-ha'
29             concurrent-builds: 3
30
31         - danube:
32             branch: 'stable/danube'
33             gs-pathname: '/danube'
34             build-slave: 'apex-build-danube'
35             virtual-slave: 'apex-virtual-danube'
36             baremetal-slave: 'apex-baremetal-danube'
37             verify-scenario: 'os-odl_l3-nofeature-ha'
38             concurrent-builds: 1
39             disabled: false
40
41     platform:
42          - 'baremetal'
43          - 'virtual'
44
45 # Unit Test
46 - job-template:
47     name: 'apex-verify-unit-tests-{stream}'
48
49     node: '{build-slave}'
50
51     concurrent: true
52
53     parameters:
54         - apex-parameter:
55             gs-pathname: '{gs-pathname}'
56         - project-parameter:
57             project: '{project}'
58             branch: '{branch}'
59
60     scm:
61         - git-scm-gerrit
62
63     triggers:
64         - gerrit:
65             server-name: 'gerrit.opnfv.org'
66             trigger-on:
67                 - patchset-created-event:
68                     exclude-drafts: 'false'
69                     exclude-trivial-rebase: 'false'
70                     exclude-no-code-change: 'true'
71                 - draft-published-event
72                 - comment-added-contains-event:
73                     comment-contains-value: 'recheck'
74                 - comment-added-contains-event:
75                     comment-contains-value: 'reverify'
76             projects:
77               - project-compare-type: 'ANT'
78                 project-pattern: 'apex'
79                 branches:
80                   - branch-compare-type: 'ANT'
81                     branch-pattern: '**/{branch}'
82                 file-paths:
83                   - compare-type: ANT
84                     pattern: 'tests/**'
85     properties:
86         - logrotate-default
87         - throttle:
88             max-per-node: 1
89             max-total: 10
90             option: 'project'
91
92     builders:
93         - shell:
94             !include-raw-escape: ./apex-unit-test.sh
95
96 # Verify
97 - job-template:
98     name: 'apex-verify-{stream}'
99
100     node: '{virtual-slave}'
101
102     concurrent: true
103
104     project-type: 'multijob'
105
106     parameters:
107         - apex-parameter:
108             gs-pathname: '{gs-pathname}/dev'
109         - project-parameter:
110             project: '{project}'
111             branch: '{branch}'
112         - string:
113             name: ARTIFACT_VERSION
114             default: dev
115             description: "Used for overriding the ARTIFACT_VERSION"
116     scm:
117         - git-scm-gerrit
118
119     triggers:
120         - gerrit:
121             server-name: 'gerrit.opnfv.org'
122             trigger-on:
123                 - patchset-created-event:
124                     exclude-drafts: 'false'
125                     exclude-trivial-rebase: 'false'
126                     exclude-no-code-change: 'true'
127                 - draft-published-event
128                 - comment-added-contains-event:
129                     comment-contains-value: 'recheck'
130                 - comment-added-contains-event:
131                     comment-contains-value: 'reverify'
132             projects:
133               - project-compare-type: 'ANT'
134                 project-pattern: 'apex'
135                 branches:
136                   - branch-compare-type: 'ANT'
137                     branch-pattern: '**/{branch}'
138                 file-paths:
139                   - compare-type: ANT
140                     pattern: 'ci/**'
141                   - compare-type: ANT
142                     pattern: 'build/**'
143                   - compare-type: ANT
144                     pattern: 'lib/**'
145                   - compare-type: ANT
146                     pattern: 'config/**'
147
148     properties:
149         - logrotate-default
150         - build-blocker:
151             use-build-blocker: true
152             block-level: 'NODE'
153             blocking-jobs:
154                 - 'apex-daily.*'
155                 - 'apex-deploy.*'
156                 - 'apex-runner.*'
157         - throttle:
158             max-per-node: 3
159             max-total: 10
160             option: 'project'
161
162     builders:
163         - description-setter:
164             description: "Built on $NODE_NAME"
165         - multijob:
166             name: basic
167             condition: SUCCESSFUL
168             projects:
169                 - name: 'apex-verify-unit-tests-{stream}'
170                   current-parameters: false
171                   predefined-parameters: |
172                     GERRIT_BRANCH=$GERRIT_BRANCH
173                     GERRIT_REFSPEC=$GERRIT_REFSPEC
174                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
175                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
176                   node-parameters: false
177                   kill-phase-on: FAILURE
178                   abort-all-job: true
179                   git-revision: true
180         - multijob:
181             name: build
182             condition: SUCCESSFUL
183             projects:
184                 - name: 'apex-build-{stream}'
185                   current-parameters: false
186                   predefined-parameters: |
187                     ARTIFACT_VERSION=$ARTIFACT_VERSION
188                     GERRIT_BRANCH=$GERRIT_BRANCH
189                     GERRIT_REFSPEC=$GERRIT_REFSPEC
190                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
191                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
192                   node-parameters: false
193                   kill-phase-on: FAILURE
194                   abort-all-job: true
195                   git-revision: true
196         - multijob:
197             name: deploy-virtual
198             condition: SUCCESSFUL
199             projects:
200                 - name: 'apex-deploy-virtual-{stream}'
201                   current-parameters: false
202                   predefined-parameters: |
203                     ARTIFACT_VERSION=$ARTIFACT_VERSION
204                     DEPLOY_SCENARIO={verify-scenario}
205                     OPNFV_CLEAN=yes
206                     GERRIT_BRANCH=$GERRIT_BRANCH
207                     GERRIT_REFSPEC=$GERRIT_REFSPEC
208                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
209                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
210                   node-parameters: true
211                   kill-phase-on: FAILURE
212                   abort-all-job: true
213                   git-revision: true
214 #        - multijob:
215 #            name: functest-smoke
216 #            condition: SUCCESSFUL
217 #            projects:
218 #              - name: 'functest-apex-virtual-suite-{stream}'
219 #                current-parameters: false
220 #                predefined-parameters: |
221 #                  DEPLOY_SCENARIO={verify-scenario}
222 #                  FUNCTEST_SUITE_NAME=healthcheck
223 #                  GERRIT_BRANCH=$GERRIT_BRANCH
224 #                  GERRIT_REFSPEC=$GERRIT_REFSPEC
225 #                  GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
226 #                  GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
227 #                node-parameters: true
228 #                kill-phase-on: FAILURE
229 #                abort-all-job: true
230 #                git-revision: false
231
232 # Verify Scenario Gate
233 - job-template:
234     name: 'apex-verify-gate-{stream}'
235
236     node: '{virtual-slave}'
237
238     concurrent: true
239
240     project-type: 'multijob'
241
242     parameters:
243         - apex-parameter:
244             gs-pathname: '{gs-pathname}/dev'
245         - project-parameter:
246             project: '{project}'
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         - string:
253             name: ARTIFACT_VERSION
254             default: dev
255             description: "Used for overriding the ARTIFACT_VERSION"
256
257     scm:
258         - git-scm-gerrit
259
260     triggers:
261         - gerrit:
262             server-name: 'gerrit.opnfv.org'
263             trigger-on:
264                 - comment-added-contains-event:
265                     comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
266             projects:
267               - project-compare-type: 'ANT'
268                 project-pattern: 'apex'
269                 branches:
270                   - branch-compare-type: 'ANT'
271                     branch-pattern: '**/{branch}'
272                 file-paths:
273                   - compare-type: ANT
274                     pattern: 'ci/**'
275                   - compare-type: ANT
276                     pattern: 'build/**'
277                   - compare-type: ANT
278                     pattern: 'lib/**'
279                   - compare-type: ANT
280                     pattern: 'config/**'
281
282     properties:
283         - logrotate-default
284         - build-blocker:
285             use-build-blocker: true
286             block-level: 'NODE'
287             blocking-jobs:
288                 - 'apex-daily.*'
289                 - 'apex-deploy.*'
290                 - 'apex-runner.*'
291         - throttle:
292             max-per-node: 3
293             max-total: 10
294             option: 'project'
295
296     builders:
297         - multijob:
298             name: deploy-virtual
299             condition: SUCCESSFUL
300             projects:
301                 - name: 'apex-deploy-virtual-{stream}'
302                   current-parameters: false
303                   predefined-parameters: |
304                     ARTIFACT_VERSION=$ARTIFACT_VERSION
305                     DEPLOY_SCENARIO=gate
306                     OPNFV_CLEAN=yes
307                     GERRIT_BRANCH=$GERRIT_BRANCH
308                     GERRIT_REFSPEC=$GERRIT_REFSPEC
309                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
310                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
311                   node-parameters: true
312                   kill-phase-on: FAILURE
313                   abort-all-job: true
314                   git-revision: true
315 #        - multijob:
316 #            name: functest-smoke
317 #            condition: SUCCESSFUL
318 #            projects:
319 #              - name: 'functest-apex-virtual-suite-{stream}'
320 #                current-parameters: false
321 #                predefined-parameters: |
322 #                  DEPLOY_SCENARIO={verify-scenario}
323 #                  FUNCTEST_SUITE_NAME=healthcheck
324 #                  GERRIT_BRANCH=$GERRIT_BRANCH
325 #                  GERRIT_REFSPEC=$GERRIT_REFSPEC
326 #                  GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
327 #                  GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
328 #                node-parameters: true
329 #                kill-phase-on: FAILURE
330 #                abort-all-job: true
331 #                git-revision: false
332
333 - job-template:
334     name: 'apex-runner-cperf-{stream}'
335
336     # runner cperf job
337     project-type: 'multijob'
338     node: 'intel-pod2'
339
340     disabled: false
341
342     parameters:
343         - apex-parameter:
344             gs-pathname: '{gs-pathname}'
345         - project-parameter:
346             project: '{project}'
347             branch: '{branch}'
348         - string:
349             name: GIT_BASE
350             default: https://gerrit.opnfv.org/gerrit/$PROJECT
351             description: "Used for overriding the GIT URL coming from parameters macro."
352
353     scm:
354         - git-scm
355
356     properties:
357         - logrotate-default
358         - build-blocker:
359             use-build-blocker: false
360             block-level: 'NODE'
361             blocking-jobs:
362                 - 'apex-deploy.*'
363         - throttle:
364             max-per-node: 1
365             max-total: 10
366             option: 'project'
367
368     builders:
369         - description-setter:
370             description: "Deployed on $NODE_NAME"
371         - multijob:
372             name: 'Baremetal Deploy'
373             condition: ALWAYS
374             projects:
375                 - name: 'apex-deploy-baremetal-{stream}'
376                   node-parameters: false
377                   current-parameters: true
378                   predefined-parameters: |
379                     GERRIT_BRANCH=$GERRIT_BRANCH
380                     GERRIT_REFSPEC=
381                     OPNFV_CLEAN=yes
382                     DEPLOY_SCENARIO={verify-scenario}
383                   kill-phase-on: FAILURE
384                   abort-all-job: true
385                   git-revision: false
386         - multijob:
387             name: CPERF
388             condition: SUCCESSFUL
389             projects:
390                 - name: 'cperf-apex-intel-pod2-daily-master'
391                   node-parameters: true
392                   current-parameters: false
393                   predefined-parameters:
394                     DEPLOY_SCENARIO={verify-scenario}
395                   kill-phase-on: NEVER
396                   abort-all-job: false
397                   git-revision: false
398
399 # Build phase
400 - job-template:
401     name: 'apex-build-{stream}'
402
403     # Job template for builds
404     #
405     # Required Variables:
406     #     stream:    branch with - in place of / (eg. stable)
407     #     branch:    branch (eg. stable)
408     node: '{build-slave}'
409
410     disabled: false
411
412     concurrent: true
413
414     parameters:
415         - '{project}-defaults'
416         - project-parameter:
417             project: '{project}'
418             branch: '{branch}'
419         - apex-parameter:
420             gs-pathname: '{gs-pathname}'
421
422     scm:
423         - git-scm-gerrit
424
425     wrappers:
426         - timeout:
427             timeout: 150
428             fail: true
429
430     properties:
431         - logrotate-default
432         - throttle:
433             max-per-node: {concurrent-builds}
434             max-total: 10
435             option: 'project'
436
437     builders:
438         - 'apex-build'
439         - inject:
440            properties-content: ARTIFACT_TYPE=rpm
441         - 'apex-upload-artifact'
442
443 # ISO verify job
444 - job-template:
445     name: 'apex-verify-iso-{stream}'
446
447     # Job template for builds
448     #
449     # Required Variables:
450     #     stream:    branch with - in place of / (eg. stable)
451     #     branch:    branch (eg. stable)
452     node: '{virtual-slave}'
453
454     disabled: false
455
456     concurrent: true
457
458     parameters:
459         - project-parameter:
460             project: '{project}'
461             branch: '{branch}'
462         - apex-parameter:
463             gs-pathname: '{gs-pathname}'
464         - string:
465             name: GIT_BASE
466             default: https://gerrit.opnfv.org/gerrit/$PROJECT
467             description: "Used for overriding the GIT URL coming from parameters macro."
468
469     scm:
470         - git-scm
471
472     properties:
473         - logrotate-default
474         - build-blocker:
475             use-build-blocker: true
476             block-level: 'NODE'
477             blocking-jobs:
478                 - 'apex-deploy.*'
479         - throttle:
480             max-per-node: 1
481             max-total: 10
482             option: 'project'
483
484     builders:
485         - 'apex-iso-verify'
486         - inject:
487            properties-content: ARTIFACT_TYPE=iso
488         - 'apex-upload-artifact'
489
490 # Deploy job
491 - job-template:
492     name: 'apex-deploy-{platform}-{stream}'
493
494     # Job template for virtual deployment
495     #
496     # Required Variables:
497     #     stream:    branch with - in place of / (eg. stable)
498     #     branch:    branch (eg. stable)
499     node: 'apex-{platform}-{stream}'
500
501     concurrent: true
502
503     disabled: false
504
505     scm:
506         - git-scm-gerrit
507
508     wrappers:
509         - timeout:
510             timeout: 120
511             fail: true
512
513     parameters:
514         - project-parameter:
515             project: '{project}'
516             branch: '{branch}'
517         - apex-parameter:
518             gs-pathname: '{gs-pathname}'
519         - string:
520             name: DEPLOY_SCENARIO
521             default: '{verify-scenario}'
522             description: "Scenario to deploy with."
523         - string:
524             name: OPNFV_CLEAN
525             default: 'no'
526             description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
527
528     properties:
529         - logrotate-default
530         - build-blocker:
531             use-build-blocker: true
532             block-level: 'NODE'
533             blocking-jobs:
534                 - 'apex-deploy.*'
535                 - 'functest.*'
536                 - 'yardstick.*'
537         - throttle:
538             max-per-node: 1
539             max-total: 10
540             option: 'project'
541
542     builders:
543         - description-setter:
544             description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
545         - 'apex-download-artifact'
546         - 'apex-deploy'
547         - 'apex-workspace-cleanup'
548
549
550 # Baremetal Deploy and Test
551 - job-template:
552     name: 'apex-run-deploy-test-baremetal-{stream}'
553
554     # Job template for daily build
555     #
556     # Required Variables:
557     #     stream:    branch with - in place of / (eg. stable)
558     #     branch:    branch (eg. stable)
559     project-type: 'multijob'
560
561     disabled: false
562
563     scm:
564         - git-scm
565
566     parameters:
567         - '{project}-defaults'
568         - '{project}-baremetal-{stream}-defaults'
569         - project-parameter:
570             project: '{project}'
571             branch: '{branch}'
572         - apex-parameter:
573             gs-pathname: '{gs-pathname}'
574         - string:
575             name: DEPLOY_SCENARIO
576             default: '{verify-scenario}'
577             description: "Scenario to deploy with."
578     properties:
579         - logrotate-default
580         - build-blocker:
581             use-build-blocker: true
582             block-level: 'NODE'
583             blocking-jobs:
584                 - 'apex-verify.*'
585                 - 'apex-runner.*'
586                 - 'apex-.*-promote.*'
587                 - 'apex-run.*'
588     builders:
589         - description-setter:
590             description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
591         - multijob:
592             name: 'Baremetal Deploy'
593             condition: ALWAYS
594             projects:
595                 - name: 'apex-deploy-baremetal-{stream}'
596                   node-parameters: true
597                   current-parameters: true
598                   predefined-parameters: |
599                     OPNFV_CLEAN=yes
600                     GERRIT_BRANCH=$GERRIT_BRANCH
601                     GERRIT_REFSPEC=
602                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
603                   kill-phase-on: FAILURE
604                   abort-all-job: true
605                   git-revision: false
606         - multijob:
607             name: Functest
608             condition: ALWAYS
609             projects:
610                 - name: 'functest-apex-baremetal-daily-{stream}'
611                   node-parameters: true
612                   current-parameters: false
613                   predefined-parameters:
614                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
615                   kill-phase-on: NEVER
616                   abort-all-job: false
617                   git-revision: false
618         - multijob:
619             name: Yardstick
620             condition: ALWAYS
621             projects:
622                 - name: 'yardstick-apex-baremetal-daily-{stream}'
623                   node-parameters: true
624                   current-parameters: false
625                   predefined-parameters:
626                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
627                   kill-phase-on: NEVER
628                   abort-all-job: false
629                   git-revision: false
630
631
632 # danube Daily
633 - job-template:
634     name: 'apex-daily-danube'
635
636     # Job template for daily build
637     #
638     # Required Variables:
639     #     stream:    branch with - in place of / (eg. stable)
640     #     branch:    branch (eg. stable)
641     project-type: 'multijob'
642
643     node: 'apex-baremetal-danube'
644
645     disabled: false
646
647     scm:
648         - git-scm
649
650     parameters:
651         - '{project}-defaults'
652         - '{project}-baremetal-danube-defaults'
653         - project-parameter:
654             project: '{project}'
655             branch: 'stable/danube'
656         - apex-parameter:
657             gs-pathname: '/danube'
658
659     properties:
660         - logrotate-default
661
662     triggers:
663         - 'apex-danube'
664
665     builders:
666         - multijob:
667             name: build
668             condition: SUCCESSFUL
669             projects:
670                 - name: 'apex-build-danube'
671                   current-parameters: false
672                   predefined-parameters: |
673                     GERRIT_BRANCH=$GERRIT_BRANCH
674                     GERRIT_REFSPEC=
675                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
676                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
677                   node-parameters: true
678                   kill-phase-on: FAILURE
679                   abort-all-job: true
680                   git-revision: true
681         - multijob:
682             name: 'Verify and upload ISO'
683             condition: SUCCESSFUL
684             projects:
685                 - name: 'apex-verify-iso-danube'
686                   current-parameters: false
687                   predefined-parameters: |
688                     BUILD_DIRECTORY=$WORKSPACE/../apex-build-danube/.build
689                     GERRIT_BRANCH=$GERRIT_BRANCH
690                     GERRIT_REFSPEC=
691                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
692                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
693                   node-parameters: true
694                   kill-phase-on: FAILURE
695                   abort-all-job: true
696                   git-revision: true
697         - multijob:
698             name: Baremetal Deploy and Test Phase
699             condition: SUCCESSFUL
700             projects:
701
702                 - name: 'apex-run-deploy-test-baremetal-danube'
703                   node-parameters: false
704                   current-parameters: false
705                   predefined-parameters: |
706                     DEPLOY_SCENARIO=os-nosdn-nofeature-noha
707                     OPNFV_CLEAN=yes
708                   kill-phase-on: NEVER
709                   abort-all-job: true
710                   git-revision: false
711
712                 - name: 'apex-run-deploy-test-baremetal-danube'
713                   node-parameters: false
714                   current-parameters: false
715                   predefined-parameters: |
716                     DEPLOY_SCENARIO=os-nosdn-nofeature-ha
717                     OPNFV_CLEAN=yes
718                   kill-phase-on: NEVER
719                   abort-all-job: true
720                   git-revision: false
721
722                 - name: 'apex-run-deploy-test-baremetal-danube'
723                   node-parameters: false
724                   current-parameters: false
725                   predefined-parameters: |
726                     DEPLOY_SCENARIO=os-nosdn-nofeature-ha-ipv6
727                     OPNFV_CLEAN=yes
728                   kill-phase-on: NEVER
729                   abort-all-job: true
730                   git-revision: false
731
732                 - name: 'apex-run-deploy-test-baremetal-danube'
733                   node-parameters: false
734                   current-parameters: false
735                   predefined-parameters: |
736                     DEPLOY_SCENARIO=os-nosdn-ovs-noha
737                     OPNFV_CLEAN=yes
738                   kill-phase-on: NEVER
739                   abort-all-job: true
740                   git-revision: false
741
742                 - name: 'apex-run-deploy-test-baremetal-danube'
743                   node-parameters: false
744                   current-parameters: false
745                   predefined-parameters: |
746                     DEPLOY_SCENARIO=os-nosdn-ovs-ha
747                     OPNFV_CLEAN=yes
748                   kill-phase-on: NEVER
749                   abort-all-job: true
750                   git-revision: false
751
752                 - name: 'apex-run-deploy-test-baremetal-danube'
753                   node-parameters: false
754                   current-parameters: false
755                   predefined-parameters: |
756                     DEPLOY_SCENARIO=os-nosdn-fdio-noha
757                     OPNFV_CLEAN=yes
758                   kill-phase-on: NEVER
759                   abort-all-job: true
760                   git-revision: false
761
762                 - name: 'apex-run-deploy-test-baremetal-danube'
763                   node-parameters: false
764                   current-parameters: false
765                   predefined-parameters: |
766                     DEPLOY_SCENARIO=os-nosdn-fdio-ha
767                     OPNFV_CLEAN=yes
768                   kill-phase-on: NEVER
769                   abort-all-job: true
770                   git-revision: false
771
772                 - name: 'apex-run-deploy-test-baremetal-danube'
773                   node-parameters: false
774                   current-parameters: false
775                   predefined-parameters: |
776                     DEPLOY_SCENARIO=os-nosdn-kvm-ha
777                     OPNFV_CLEAN=yes
778                   kill-phase-on: NEVER
779                   abort-all-job: true
780                   git-revision: false
781
782                 - name: 'apex-run-deploy-test-baremetal-danube'
783                   node-parameters: false
784                   current-parameters: false
785                   predefined-parameters: |
786                     DEPLOY_SCENARIO=os-nosdn-kvm-noha
787                     OPNFV_CLEAN=yes
788                   kill-phase-on: NEVER
789                   abort-all-job: true
790                   git-revision: false
791
792                 - name: 'apex-run-deploy-test-baremetal-danube'
793                   node-parameters: false
794                   current-parameters: false
795                   predefined-parameters: |
796                     DEPLOY_SCENARIO=os-odl_l2-fdio-noha
797                     OPNFV_CLEAN=yes
798                   kill-phase-on: NEVER
799                   abort-all-job: true
800                   git-revision: false
801
802                 - name: 'apex-run-deploy-test-baremetal-danube'
803                   node-parameters: false
804                   current-parameters: false
805                   predefined-parameters: |
806                     DEPLOY_SCENARIO=os-odl_l2-fdio-ha
807                     OPNFV_CLEAN=yes
808                   kill-phase-on: NEVER
809                   abort-all-job: true
810                   git-revision: false
811
812                 - name: 'apex-run-deploy-test-baremetal-danube'
813                   node-parameters: false
814                   current-parameters: false
815                   predefined-parameters: |
816                     DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
817                     OPNFV_CLEAN=yes
818                   kill-phase-on: NEVER
819                   abort-all-job: true
820                   git-revision: false
821
822                 - name: 'apex-run-deploy-test-baremetal-danube'
823                   node-parameters: false
824                   current-parameters: false
825                   predefined-parameters: |
826                     DEPLOY_SCENARIO=os-odl_l2-sfc-noha
827                     OPNFV_CLEAN=yes
828                   kill-phase-on: NEVER
829                   abort-all-job: true
830                   git-revision: false
831
832                 - name: 'apex-run-deploy-test-baremetal-danube'
833                   node-parameters: false
834                   current-parameters: false
835                   predefined-parameters: |
836                     DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
837                     OPNFV_CLEAN=yes
838                   kill-phase-on: NEVER
839                   abort-all-job: true
840                   git-revision: false
841
842                 - name: 'apex-run-deploy-test-baremetal-danube'
843                   node-parameters: false
844                   current-parameters: false
845                   predefined-parameters: |
846                     DEPLOY_SCENARIO=os-odl_l3-nofeature-ha
847                     OPNFV_CLEAN=yes
848                   kill-phase-on: NEVER
849                   abort-all-job: true
850                   git-revision: false
851
852                 - name: 'apex-run-deploy-test-baremetal-danube'
853                   node-parameters: false
854                   current-parameters: false
855                   predefined-parameters: |
856                     DEPLOY_SCENARIO=os-odl_l3-ovs-noha
857                     OPNFV_CLEAN=yes
858                   kill-phase-on: NEVER
859                   abort-all-job: true
860                   git-revision: false
861
862                 - name: 'apex-run-deploy-test-baremetal-danube'
863                   node-parameters: false
864                   current-parameters: false
865                   predefined-parameters: |
866                     DEPLOY_SCENARIO=os-odl_l3-ovs-ha
867                     OPNFV_CLEAN=yes
868                   kill-phase-on: NEVER
869                   abort-all-job: true
870                   git-revision: false
871
872                 - name: 'apex-run-deploy-test-baremetal-danube'
873                   node-parameters: false
874                   current-parameters: false
875                   predefined-parameters: |
876                     DEPLOY_SCENARIO=os-odl-bgpvpn-ha
877                     OPNFV_CLEAN=yes
878                   kill-phase-on: NEVER
879                   abort-all-job: true
880                   git-revision: false
881
882                 - name: 'apex-run-deploy-test-baremetal-danube'
883                   node-parameters: false
884                   current-parameters: false
885                   predefined-parameters: |
886                     DEPLOY_SCENARIO=os-odl-gluon-noha
887                     OPNFV_CLEAN=yes
888                   kill-phase-on: NEVER
889                   abort-all-job: true
890                   git-revision: false
891
892                 - name: 'apex-run-deploy-test-baremetal-danube'
893                   node-parameters: false
894                   current-parameters: false
895                   predefined-parameters: |
896                     DEPLOY_SCENARIO=os-odl_l3-fdio-noha
897                     OPNFV_CLEAN=yes
898                   kill-phase-on: NEVER
899                   abort-all-job: true
900                   git-revision: false
901
902                 - name: 'apex-run-deploy-test-baremetal-danube'
903                   node-parameters: false
904                   current-parameters: false
905                   predefined-parameters: |
906                     DEPLOY_SCENARIO=os-odl_l3-fdio-ha
907                     OPNFV_CLEAN=yes
908                   kill-phase-on: NEVER
909                   abort-all-job: true
910                   git-revision: false
911
912                 - name: 'apex-run-deploy-test-baremetal-danube'
913                   node-parameters: false
914                   current-parameters: false
915                   predefined-parameters: |
916                     DEPLOY_SCENARIO=os-odl_l3-fdio_dvr-noha
917                     OPNFV_CLEAN=yes
918                   kill-phase-on: NEVER
919                   abort-all-job: true
920                   git-revision: false
921
922                 - name: 'apex-run-deploy-test-baremetal-danube'
923                   node-parameters: false
924                   current-parameters: false
925                   predefined-parameters: |
926                     DEPLOY_SCENARIO=os-odl_l3-fdio_dvr-ha
927                     OPNFV_CLEAN=yes
928                   kill-phase-on: NEVER
929                   abort-all-job: true
930                   git-revision: false
931
932                 - name: 'apex-run-deploy-test-baremetal-danube'
933                   node-parameters: false
934                   current-parameters: false
935                   predefined-parameters: |
936                     DEPLOY_SCENARIO=os-odl_l3-csit-noha
937                     OPNFV_CLEAN=yes
938                   kill-phase-on: NEVER
939                   abort-all-job: true
940                   git-revision: false
941
942                 - name: 'apex-run-deploy-test-baremetal-danube'
943                   node-parameters: false
944                   current-parameters: false
945                   predefined-parameters: |
946                     DEPLOY_SCENARIO=os-onos-nofeature-ha
947                     OPNFV_CLEAN=yes
948                   kill-phase-on: NEVER
949                   abort-all-job: true
950                   git-revision: false
951
952                 - name: 'apex-run-deploy-test-baremetal-danube'
953                   node-parameters: false
954                   current-parameters: false
955                   predefined-parameters: |
956                     DEPLOY_SCENARIO=os-ovn-nofeature-noha
957                     OPNFV_CLEAN=yes
958                   kill-phase-on: NEVER
959                   abort-all-job: true
960                   git-revision: false
961
962
963 # master Daily
964 - job-template:
965     name: 'apex-daily-master'
966
967     # Job template for daily build
968     #
969     # Required Variables:
970     #     stream:    branch with - in place of / (eg. stable)
971     #     branch:    branch (eg. stable)
972     project-type: 'multijob'
973
974     node: 'apex-baremetal-master'
975
976     disabled: false
977
978     scm:
979         - git-scm
980
981     parameters:
982         - '{project}-defaults'
983         - '{project}-baremetal-master-defaults'
984         - project-parameter:
985             project: '{project}'
986             branch: 'master'
987         - apex-parameter:
988             gs-pathname: ''
989
990     properties:
991         - logrotate-default
992
993     triggers:
994         - 'apex-master'
995
996     builders:
997         - multijob:
998             name: build
999             condition: SUCCESSFUL
1000             projects:
1001                 - name: 'apex-build-master'
1002                   current-parameters: false
1003                   predefined-parameters: |
1004                     GERRIT_BRANCH=$GERRIT_BRANCH
1005                     GERRIT_REFSPEC=
1006                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1007                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1008                   node-parameters: true
1009                   kill-phase-on: FAILURE
1010                   abort-all-job: true
1011                   git-revision: true
1012         - multijob:
1013             name: 'Verify and upload ISO'
1014             condition: SUCCESSFUL
1015             projects:
1016                 - name: 'apex-verify-iso-master'
1017                   current-parameters: false
1018                   predefined-parameters: |
1019                     BUILD_DIRECTORY=$WORKSPACE/../apex-build-master/.build
1020                     GERRIT_BRANCH=$GERRIT_BRANCH
1021                     GERRIT_REFSPEC=
1022                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1023                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1024                   node-parameters: true
1025                   kill-phase-on: FAILURE
1026                   abort-all-job: true
1027                   git-revision: true
1028         - multijob:
1029             name: Baremetal Deploy and Test Phase
1030             condition: SUCCESSFUL
1031             projects:
1032
1033                 - name: 'apex-run-deploy-test-baremetal-master'
1034                   node-parameters: false
1035                   current-parameters: false
1036                   predefined-parameters: |
1037                     DEPLOY_SCENARIO=os-nosdn-nofeature-noha
1038                     OPNFV_CLEAN=yes
1039                   kill-phase-on: NEVER
1040                   abort-all-job: true
1041                   git-revision: false
1042
1043                 - name: 'apex-run-deploy-test-baremetal-master'
1044                   node-parameters: false
1045                   current-parameters: false
1046                   predefined-parameters: |
1047                     DEPLOY_SCENARIO=os-nosdn-nofeature-ha
1048                     OPNFV_CLEAN=yes
1049                   kill-phase-on: NEVER
1050                   abort-all-job: true
1051                   git-revision: false
1052
1053                 - name: 'apex-run-deploy-test-baremetal-master'
1054                   node-parameters: false
1055                   current-parameters: false
1056                   predefined-parameters: |
1057                     DEPLOY_SCENARIO=os-odl-nofeature-ha
1058                     OPNFV_CLEAN=yes
1059                   kill-phase-on: NEVER
1060                   abort-all-job: true
1061                   git-revision: false
1062
1063                 - name: 'apex-run-deploy-test-baremetal-master'
1064                   node-parameters: false
1065                   current-parameters: false
1066                   predefined-parameters: |
1067                     DEPLOY_SCENARIO=os-odl-nofeature-noha
1068                     OPNFV_CLEAN=yes
1069                   kill-phase-on: NEVER
1070                   abort-all-job: true
1071                   git-revision: false
1072
1073
1074
1075 # snapshot create
1076 - job-template:
1077     name: 'apex-create-snapshot'
1078
1079     # Job template for clean
1080     #
1081     # Required Variables:
1082     #     stream:    branch with - in place of / (eg. stable)
1083
1084     disabled: false
1085
1086     builders:
1087         - shell:
1088             !include-raw-escape: ./apex-snapshot-create.sh
1089
1090 # snapshot upload
1091 - job-template:
1092     name: 'apex-upload-snapshot'
1093
1094     # Job template for clean
1095     #
1096     # Required Variables:
1097     #     stream:    branch with - in place of / (eg. stable)
1098
1099     disabled: false
1100
1101     builders:
1102         - inject:
1103            properties-content: ARTIFACT_TYPE=snapshot
1104         - 'apex-upload-artifact'
1105
1106 # CSIT promote
1107 - job-template:
1108     name: 'apex-csit-promote-daily-{stream}'
1109
1110     # Job template for promoting CSIT Snapshots
1111     #
1112     # Required Variables:
1113     #     stream:    branch with - in place of / (eg. stable)
1114     #     branch:    branch (eg. stable)
1115     node: '{virtual-slave}'
1116     project-type: 'multijob'
1117     disabled: false
1118
1119     scm:
1120         - git-scm
1121
1122     parameters:
1123         - project-parameter:
1124             project: '{project}'
1125             branch: '{branch}'
1126         - apex-parameter:
1127             gs-pathname: '{gs-pathname}'
1128
1129     properties:
1130         - build-blocker:
1131             use-build-blocker: true
1132             block-level: 'NODE'
1133             blocking-jobs:
1134                 - 'apex-verify.*'
1135                 - 'apex-deploy.*'
1136                 - 'apex-runner.*'
1137                 - 'apex-daily.*'
1138
1139     triggers:
1140         - timed: '0 12 * * 0'
1141
1142     builders:
1143         - multijob:
1144             name: build
1145             condition: SUCCESSFUL
1146             projects:
1147                 - name: 'apex-build-{stream}'
1148                   current-parameters: false
1149                   predefined-parameters: |
1150                     GERRIT_BRANCH=$GERRIT_BRANCH
1151                     GERRIT_REFSPEC=$GERRIT_REFSPEC
1152                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1153                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1154                   node-parameters: false
1155                   kill-phase-on: FAILURE
1156                   abort-all-job: true
1157                   git-revision: true
1158         - multijob:
1159             name: deploy-virtual
1160             condition: SUCCESSFUL
1161             projects:
1162                 - name: 'apex-deploy-virtual-{stream}'
1163                   current-parameters: false
1164                   predefined-parameters: |
1165                     DEPLOY_SCENARIO=os-odl_l3-csit-noha
1166                     OPNFV_CLEAN=yes
1167                     GERRIT_BRANCH=$GERRIT_BRANCH
1168                     GERRIT_REFSPEC=$GERRIT_REFSPEC
1169                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1170                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1171                     PROMOTE=True
1172                   node-parameters: true
1173                   kill-phase-on: FAILURE
1174                   abort-all-job: true
1175                   git-revision: false
1176         - multijob:
1177             name: functest-smoke
1178             condition: SUCCESSFUL
1179             projects:
1180               - name: 'functest-apex-virtual-suite-{stream}'
1181                 current-parameters: false
1182                 predefined-parameters: |
1183                   DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
1184                   FUNCTEST_SUITE_NAME=tempest_smoke_serial
1185                   GERRIT_BRANCH=$GERRIT_BRANCH
1186                   GERRIT_REFSPEC=$GERRIT_REFSPEC
1187                   GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1188                   GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1189                 node-parameters: true
1190                 kill-phase-on: FAILURE
1191                 abort-all-job: true
1192                 git-revision: false
1193         - multijob:
1194             name: create snapshot
1195             condition: SUCCESSFUL
1196             projects:
1197               - name: 'apex-create-snapshot'
1198                 current-parameters: true
1199                 node-parameters: true
1200                 kill-phase-on: FAILURE
1201                 abort-all-job: true
1202                 git-revision: false
1203         - multijob:
1204             name: upload snapshot
1205             condition: SUCCESSFUL
1206             projects:
1207               - name: 'apex-upload-snapshot'
1208                 current-parameters: true
1209                 node-parameters: true
1210                 kill-phase-on: FAILURE
1211                 abort-all-job: true
1212                 git-revision: false
1213
1214 # FDIO promote
1215 - job-template:
1216     name: 'apex-fdio-promote-daily-{stream}'
1217
1218     # Job template for promoting CSIT Snapshots
1219     #
1220     # Required Variables:
1221     #     stream:    branch with - in place of / (eg. stable)
1222     #     branch:    branch (eg. stable)
1223     node: '{virtual-slave}'
1224     project-type: 'multijob'
1225     disabled: false
1226
1227     scm:
1228         - git-scm
1229
1230     parameters:
1231         - project-parameter:
1232             project: '{project}'
1233             branch: '{branch}'
1234         - apex-parameter:
1235             gs-pathname: '{gs-pathname}'
1236
1237     properties:
1238         - build-blocker:
1239             use-build-blocker: true
1240             block-level: 'NODE'
1241             blocking-jobs:
1242                 - 'apex-verify.*'
1243                 - 'apex-deploy.*'
1244                 - 'apex-runner.*'
1245                 - 'apex-daily.*'
1246
1247     builders:
1248         - multijob:
1249             name: build
1250             condition: SUCCESSFUL
1251             projects:
1252                 - name: 'apex-build-{stream}'
1253                   current-parameters: false
1254                   predefined-parameters: |
1255                     GERRIT_BRANCH=$GERRIT_BRANCH
1256                     GERRIT_REFSPEC=$GERRIT_REFSPEC
1257                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1258                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1259                   node-parameters: false
1260                   kill-phase-on: FAILURE
1261                   abort-all-job: true
1262                   git-revision: true
1263         - multijob:
1264             name: deploy-virtual
1265             condition: SUCCESSFUL
1266             projects:
1267                 - name: 'apex-deploy-virtual-{stream}'
1268                   current-parameters: false
1269                   predefined-parameters: |
1270                     DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
1271                     OPNFV_CLEAN=yes
1272                     GERRIT_BRANCH=$GERRIT_BRANCH
1273                     GERRIT_REFSPEC=$GERRIT_REFSPEC
1274                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1275                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1276                     PROMOTE=True
1277                   node-parameters: true
1278                   kill-phase-on: FAILURE
1279                   abort-all-job: true
1280                   git-revision: false
1281         - multijob:
1282             name: create snapshot
1283             condition: SUCCESSFUL
1284             projects:
1285               - name: 'apex-create-snapshot'
1286                 current-parameters: true
1287                 node-parameters: true
1288                 kill-phase-on: FAILURE
1289                 abort-all-job: true
1290                 git-revision: false
1291         - multijob:
1292             name: upload snapshot
1293             condition: SUCCESSFUL
1294             projects:
1295               - name: 'apex-upload-snapshot'
1296                 current-parameters: true
1297                 node-parameters: true
1298                 kill-phase-on: FAILURE
1299                 abort-all-job: true
1300                 git-revision: false
1301
1302 ########################
1303 # parameter macros
1304 ########################
1305 - parameter:
1306     name: apex-parameter
1307     parameters:
1308         - string:
1309             name: ARTIFACT_NAME
1310             default: 'latest'
1311             description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1312         - string:
1313             name: ARTIFACT_VERSION
1314             default: 'daily'
1315             description: "Artifact version type"
1316         - string:
1317             name: BUILD_DIRECTORY
1318             default: $WORKSPACE/.build
1319             description: "Directory where the build artifact will be located upon the completion of the build."
1320         - string:
1321             name: CACHE_DIRECTORY
1322             default: $HOME/opnfv/apex-cache{gs-pathname}
1323             description: "Directory where the cache to be used during the build is located."
1324         - string:
1325             name: GIT_BASE
1326             default: https://gerrit.opnfv.org/gerrit/$PROJECT
1327             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1328         - string:
1329             name: GS_PATHNAME
1330             default: '{gs-pathname}'
1331             description: "Version directory where opnfv artifacts are stored in gs repository"
1332         - string:
1333             name: GS_URL
1334             default: $GS_BASE{gs-pathname}
1335             description: "URL to Google Storage."
1336         - string:
1337             name: PROMOTE
1338             default: 'False'
1339             description: "Flag to know if we should promote/upload snapshot artifacts."
1340
1341 ########################
1342 # builder macros
1343 ########################
1344 - builder:
1345     name: 'apex-unit-test'
1346     builders:
1347         - shell:
1348             !include-raw: ./apex-unit-test.sh
1349
1350 - builder:
1351     name: 'apex-build'
1352     builders:
1353         - shell:
1354             !include-raw: ./apex-build.sh
1355
1356 - builder:
1357     name: 'apex-workspace-cleanup'
1358     builders:
1359         - shell:
1360             !include-raw: ./apex-workspace-cleanup.sh
1361
1362 - builder:
1363     name: 'apex-iso-verify'
1364     builders:
1365         - shell:
1366             !include-raw: ./apex-iso-verify.sh
1367
1368
1369 - builder:
1370     name: 'apex-upload-artifact'
1371     builders:
1372         - shell:
1373             !include-raw: ./apex-upload-artifact.sh
1374
1375 - builder:
1376     name: 'apex-download-artifact'
1377     builders:
1378         - shell:
1379             !include-raw: ./apex-download-artifact.sh
1380
1381 - builder:
1382     name: 'apex-deploy'
1383     builders:
1384         - shell:
1385             !include-raw: ./apex-deploy.sh
1386
1387 #######################
1388 # trigger macros
1389 ########################
1390 - trigger:
1391     name: 'apex-master'
1392     triggers:
1393         - timed: '0 3 1 1 7'
1394 - trigger:
1395     name: 'apex-danube'
1396     triggers:
1397         - timed: '0 12 * * *'