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