a8b5914975ce0aba8af1c67dddb8271c95c0f700
[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
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: 150
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                 - 'yardstick.*'
533         - throttle:
534             max-per-node: 1
535             max-total: 10
536             option: 'project'
537
538     builders:
539         - description-setter:
540             description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
541         - 'apex-download-artifact'
542         - 'apex-deploy'
543         - 'apex-workspace-cleanup'
544
545
546 # Baremetal Deploy and Test
547 - job-template:
548     name: 'apex-run-deploy-test-baremetal-{stream}'
549
550     # Job template for daily build
551     #
552     # Required Variables:
553     #     stream:    branch with - in place of / (eg. stable)
554     #     branch:    branch (eg. stable)
555     project-type: 'multijob'
556
557     disabled: false
558
559     scm:
560         - git-scm
561
562     parameters:
563         - '{project}-defaults'
564         - '{project}-baremetal-{stream}-defaults'
565         - project-parameter:
566             project: '{project}'
567             branch: '{branch}'
568         - apex-parameter:
569             gs-pathname: '{gs-pathname}'
570         - string:
571             name: DEPLOY_SCENARIO
572             default: '{verify-scenario}'
573             description: "Scenario to deploy with."
574     properties:
575         - logrotate-default
576         - build-blocker:
577             use-build-blocker: true
578             block-level: 'NODE'
579             blocking-jobs:
580                 - 'apex-verify.*'
581                 - 'apex-runner.*'
582                 - 'apex-.*-promote.*'
583                 - 'apex-run.*'
584     builders:
585         - description-setter:
586             description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
587         - multijob:
588             name: 'Baremetal Deploy'
589             condition: ALWAYS
590             projects:
591                 - name: 'apex-deploy-baremetal-{stream}'
592                   node-parameters: true
593                   current-parameters: true
594                   predefined-parameters: |
595                     OPNFV_CLEAN=yes
596                     GERRIT_BRANCH=$GERRIT_BRANCH
597                     GERRIT_REFSPEC=
598                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
599                   kill-phase-on: FAILURE
600                   abort-all-job: true
601                   git-revision: false
602         - multijob:
603             name: Functest
604             condition: ALWAYS
605             projects:
606                 - name: 'functest-apex-baremetal-daily-{stream}'
607                   node-parameters: true
608                   current-parameters: false
609                   predefined-parameters:
610                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
611                   kill-phase-on: NEVER
612                   abort-all-job: false
613                   git-revision: false
614         - multijob:
615             name: Yardstick
616             condition: ALWAYS
617             projects:
618                 - name: 'yardstick-apex-baremetal-daily-{stream}'
619                   node-parameters: true
620                   current-parameters: false
621                   predefined-parameters:
622                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
623                   kill-phase-on: NEVER
624                   abort-all-job: false
625                   git-revision: false
626
627
628 # danube Daily
629 - job-template:
630     name: 'apex-daily-danube'
631
632     # Job template for daily build
633     #
634     # Required Variables:
635     #     stream:    branch with - in place of / (eg. stable)
636     #     branch:    branch (eg. stable)
637     project-type: 'multijob'
638
639     node: 'apex-baremetal-danube'
640
641     disabled: false
642
643     scm:
644         - git-scm
645
646     parameters:
647         - '{project}-defaults'
648         - '{project}-baremetal-danube-defaults'
649         - project-parameter:
650             project: '{project}'
651             branch: 'stable/danube'
652         - apex-parameter:
653             gs-pathname: '/danube'
654
655     properties:
656         - logrotate-default
657
658     triggers:
659         - 'apex-danube'
660
661     builders:
662         - multijob:
663             name: build
664             condition: SUCCESSFUL
665             projects:
666                 - name: 'apex-build-danube'
667                   current-parameters: false
668                   predefined-parameters: |
669                     GERRIT_BRANCH=$GERRIT_BRANCH
670                     GERRIT_REFSPEC=
671                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
672                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
673                   node-parameters: true
674                   kill-phase-on: FAILURE
675                   abort-all-job: true
676                   git-revision: true
677         - multijob:
678             name: 'Verify and upload ISO'
679             condition: SUCCESSFUL
680             projects:
681                 - name: 'apex-verify-iso-danube'
682                   current-parameters: false
683                   predefined-parameters: |
684                     BUILD_DIRECTORY=$WORKSPACE/../apex-build-danube/.build
685                     GERRIT_BRANCH=$GERRIT_BRANCH
686                     GERRIT_REFSPEC=
687                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
688                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
689                   node-parameters: true
690                   kill-phase-on: FAILURE
691                   abort-all-job: true
692                   git-revision: true
693         - multijob:
694             name: Baremetal Deploy and Test Phase
695             condition: SUCCESSFUL
696             projects:
697
698                 - name: 'apex-run-deploy-test-baremetal-danube'
699                   node-parameters: false
700                   current-parameters: false
701                   predefined-parameters: |
702                     DEPLOY_SCENARIO=os-nosdn-nofeature-noha
703                     OPNFV_CLEAN=yes
704                   kill-phase-on: NEVER
705                   abort-all-job: true
706                   git-revision: false
707
708                 - name: 'apex-run-deploy-test-baremetal-danube'
709                   node-parameters: false
710                   current-parameters: false
711                   predefined-parameters: |
712                     DEPLOY_SCENARIO=os-nosdn-nofeature-ha
713                     OPNFV_CLEAN=yes
714                   kill-phase-on: NEVER
715                   abort-all-job: true
716                   git-revision: false
717
718                 - name: 'apex-run-deploy-test-baremetal-danube'
719                   node-parameters: false
720                   current-parameters: false
721                   predefined-parameters: |
722                     DEPLOY_SCENARIO=os-nosdn-nofeature-ha-ipv6
723                     OPNFV_CLEAN=yes
724                   kill-phase-on: NEVER
725                   abort-all-job: true
726                   git-revision: false
727
728                 - name: 'apex-run-deploy-test-baremetal-danube'
729                   node-parameters: false
730                   current-parameters: false
731                   predefined-parameters: |
732                     DEPLOY_SCENARIO=os-nosdn-ovs-noha
733                     OPNFV_CLEAN=yes
734                   kill-phase-on: NEVER
735                   abort-all-job: true
736                   git-revision: false
737
738                 - name: 'apex-run-deploy-test-baremetal-danube'
739                   node-parameters: false
740                   current-parameters: false
741                   predefined-parameters: |
742                     DEPLOY_SCENARIO=os-nosdn-ovs-ha
743                     OPNFV_CLEAN=yes
744                   kill-phase-on: NEVER
745                   abort-all-job: true
746                   git-revision: false
747
748                 - name: 'apex-run-deploy-test-baremetal-danube'
749                   node-parameters: false
750                   current-parameters: false
751                   predefined-parameters: |
752                     DEPLOY_SCENARIO=os-nosdn-fdio-noha
753                     OPNFV_CLEAN=yes
754                   kill-phase-on: NEVER
755                   abort-all-job: true
756                   git-revision: false
757
758                 - name: 'apex-run-deploy-test-baremetal-danube'
759                   node-parameters: false
760                   current-parameters: false
761                   predefined-parameters: |
762                     DEPLOY_SCENARIO=os-nosdn-fdio-ha
763                     OPNFV_CLEAN=yes
764                   kill-phase-on: NEVER
765                   abort-all-job: true
766                   git-revision: false
767
768                 - name: 'apex-run-deploy-test-baremetal-danube'
769                   node-parameters: false
770                   current-parameters: false
771                   predefined-parameters: |
772                     DEPLOY_SCENARIO=os-nosdn-kvm-ha
773                     OPNFV_CLEAN=yes
774                   kill-phase-on: NEVER
775                   abort-all-job: true
776                   git-revision: false
777
778                 - name: 'apex-run-deploy-test-baremetal-danube'
779                   node-parameters: false
780                   current-parameters: false
781                   predefined-parameters: |
782                     DEPLOY_SCENARIO=os-nosdn-kvm-noha
783                     OPNFV_CLEAN=yes
784                   kill-phase-on: NEVER
785                   abort-all-job: true
786                   git-revision: false
787
788                 - name: 'apex-run-deploy-test-baremetal-danube'
789                   node-parameters: false
790                   current-parameters: false
791                   predefined-parameters: |
792                     DEPLOY_SCENARIO=os-odl_l2-fdio-noha
793                     OPNFV_CLEAN=yes
794                   kill-phase-on: NEVER
795                   abort-all-job: true
796                   git-revision: false
797
798                 - name: 'apex-run-deploy-test-baremetal-danube'
799                   node-parameters: false
800                   current-parameters: false
801                   predefined-parameters: |
802                     DEPLOY_SCENARIO=os-odl_l2-fdio-ha
803                     OPNFV_CLEAN=yes
804                   kill-phase-on: NEVER
805                   abort-all-job: true
806                   git-revision: false
807
808                 - name: 'apex-run-deploy-test-baremetal-danube'
809                   node-parameters: false
810                   current-parameters: false
811                   predefined-parameters: |
812                     DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
813                     OPNFV_CLEAN=yes
814                   kill-phase-on: NEVER
815                   abort-all-job: true
816                   git-revision: false
817
818                 - name: 'apex-run-deploy-test-baremetal-danube'
819                   node-parameters: false
820                   current-parameters: false
821                   predefined-parameters: |
822                     DEPLOY_SCENARIO=os-odl_l2-sfc-noha
823                     OPNFV_CLEAN=yes
824                   kill-phase-on: NEVER
825                   abort-all-job: true
826                   git-revision: false
827
828                 - name: 'apex-run-deploy-test-baremetal-danube'
829                   node-parameters: false
830                   current-parameters: false
831                   predefined-parameters: |
832                     DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
833                     OPNFV_CLEAN=yes
834                   kill-phase-on: NEVER
835                   abort-all-job: true
836                   git-revision: false
837
838                 - name: 'apex-run-deploy-test-baremetal-danube'
839                   node-parameters: false
840                   current-parameters: false
841                   predefined-parameters: |
842                     DEPLOY_SCENARIO=os-odl_l3-nofeature-ha
843                     OPNFV_CLEAN=yes
844                   kill-phase-on: NEVER
845                   abort-all-job: true
846                   git-revision: false
847
848                 - name: 'apex-run-deploy-test-baremetal-danube'
849                   node-parameters: false
850                   current-parameters: false
851                   predefined-parameters: |
852                     DEPLOY_SCENARIO=os-odl_l3-ovs-noha
853                     OPNFV_CLEAN=yes
854                   kill-phase-on: NEVER
855                   abort-all-job: true
856                   git-revision: false
857
858                 - name: 'apex-run-deploy-test-baremetal-danube'
859                   node-parameters: false
860                   current-parameters: false
861                   predefined-parameters: |
862                     DEPLOY_SCENARIO=os-odl_l3-ovs-ha
863                     OPNFV_CLEAN=yes
864                   kill-phase-on: NEVER
865                   abort-all-job: true
866                   git-revision: false
867
868                 - name: 'apex-run-deploy-test-baremetal-danube'
869                   node-parameters: false
870                   current-parameters: false
871                   predefined-parameters: |
872                     DEPLOY_SCENARIO=os-odl-bgpvpn-ha
873                     OPNFV_CLEAN=yes
874                   kill-phase-on: NEVER
875                   abort-all-job: true
876                   git-revision: false
877
878                 - name: 'apex-run-deploy-test-baremetal-danube'
879                   node-parameters: false
880                   current-parameters: false
881                   predefined-parameters: |
882                     DEPLOY_SCENARIO=os-odl-gluon-noha
883                     OPNFV_CLEAN=yes
884                   kill-phase-on: NEVER
885                   abort-all-job: true
886                   git-revision: false
887
888                 - name: 'apex-run-deploy-test-baremetal-danube'
889                   node-parameters: false
890                   current-parameters: false
891                   predefined-parameters: |
892                     DEPLOY_SCENARIO=os-odl_l3-fdio-noha
893                     OPNFV_CLEAN=yes
894                   kill-phase-on: NEVER
895                   abort-all-job: true
896                   git-revision: false
897
898                 - name: 'apex-run-deploy-test-baremetal-danube'
899                   node-parameters: false
900                   current-parameters: false
901                   predefined-parameters: |
902                     DEPLOY_SCENARIO=os-odl_l3-fdio-ha
903                     OPNFV_CLEAN=yes
904                   kill-phase-on: NEVER
905                   abort-all-job: true
906                   git-revision: false
907
908                 - name: 'apex-run-deploy-test-baremetal-danube'
909                   node-parameters: false
910                   current-parameters: false
911                   predefined-parameters: |
912                     DEPLOY_SCENARIO=os-odl_l3-fdio_dvr-noha
913                     OPNFV_CLEAN=yes
914                   kill-phase-on: NEVER
915                   abort-all-job: true
916                   git-revision: false
917
918                 - name: 'apex-run-deploy-test-baremetal-danube'
919                   node-parameters: false
920                   current-parameters: false
921                   predefined-parameters: |
922                     DEPLOY_SCENARIO=os-odl_l3-fdio_dvr-ha
923                     OPNFV_CLEAN=yes
924                   kill-phase-on: NEVER
925                   abort-all-job: true
926                   git-revision: false
927
928                 - name: 'apex-run-deploy-test-baremetal-danube'
929                   node-parameters: false
930                   current-parameters: false
931                   predefined-parameters: |
932                     DEPLOY_SCENARIO=os-odl_l3-csit-noha
933                     OPNFV_CLEAN=yes
934                   kill-phase-on: NEVER
935                   abort-all-job: true
936                   git-revision: false
937
938                 - name: 'apex-run-deploy-test-baremetal-danube'
939                   node-parameters: false
940                   current-parameters: false
941                   predefined-parameters: |
942                     DEPLOY_SCENARIO=os-onos-nofeature-ha
943                     OPNFV_CLEAN=yes
944                   kill-phase-on: NEVER
945                   abort-all-job: true
946                   git-revision: false
947
948                 - name: 'apex-run-deploy-test-baremetal-danube'
949                   node-parameters: false
950                   current-parameters: false
951                   predefined-parameters: |
952                     DEPLOY_SCENARIO=os-ovn-nofeature-noha
953                     OPNFV_CLEAN=yes
954                   kill-phase-on: NEVER
955                   abort-all-job: true
956                   git-revision: false
957
958
959 # master Daily
960 - job-template:
961     name: 'apex-daily-master'
962
963     # Job template for daily build
964     #
965     # Required Variables:
966     #     stream:    branch with - in place of / (eg. stable)
967     #     branch:    branch (eg. stable)
968     project-type: 'multijob'
969
970     node: 'apex-baremetal-master'
971
972     disabled: false
973
974     scm:
975         - git-scm
976
977     parameters:
978         - '{project}-defaults'
979         - '{project}-baremetal-master-defaults'
980         - project-parameter:
981             project: '{project}'
982             branch: 'master'
983         - apex-parameter:
984             gs-pathname: ''
985
986     properties:
987         - logrotate-default
988
989     triggers:
990         - 'apex-master'
991
992     builders:
993         - multijob:
994             name: build
995             condition: SUCCESSFUL
996             projects:
997                 - name: 'apex-build-master'
998                   current-parameters: false
999                   predefined-parameters: |
1000                     GERRIT_BRANCH=$GERRIT_BRANCH
1001                     GERRIT_REFSPEC=
1002                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1003                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1004                   node-parameters: true
1005                   kill-phase-on: FAILURE
1006                   abort-all-job: true
1007                   git-revision: true
1008         - multijob:
1009             name: 'Verify and upload ISO'
1010             condition: SUCCESSFUL
1011             projects:
1012                 - name: 'apex-verify-iso-master'
1013                   current-parameters: false
1014                   predefined-parameters: |
1015                     BUILD_DIRECTORY=$WORKSPACE/../apex-build-master/.build
1016                     GERRIT_BRANCH=$GERRIT_BRANCH
1017                     GERRIT_REFSPEC=
1018                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1019                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1020                   node-parameters: true
1021                   kill-phase-on: FAILURE
1022                   abort-all-job: true
1023                   git-revision: true
1024         - multijob:
1025             name: Baremetal Deploy and Test Phase
1026             condition: SUCCESSFUL
1027             projects:
1028
1029                 - name: 'apex-run-deploy-test-baremetal-master'
1030                   node-parameters: false
1031                   current-parameters: false
1032                   predefined-parameters: |
1033                     DEPLOY_SCENARIO=os-nosdn-nofeature-noha
1034                     OPNFV_CLEAN=yes
1035                   kill-phase-on: NEVER
1036                   abort-all-job: true
1037                   git-revision: false
1038
1039                 - name: 'apex-run-deploy-test-baremetal-master'
1040                   node-parameters: false
1041                   current-parameters: false
1042                   predefined-parameters: |
1043                     DEPLOY_SCENARIO=os-nosdn-nofeature-ha
1044                     OPNFV_CLEAN=yes
1045                   kill-phase-on: NEVER
1046                   abort-all-job: true
1047                   git-revision: false
1048
1049                 - name: 'apex-run-deploy-test-baremetal-master'
1050                   node-parameters: false
1051                   current-parameters: false
1052                   predefined-parameters: |
1053                     DEPLOY_SCENARIO=os-odl-nofeature-ha
1054                     OPNFV_CLEAN=yes
1055                   kill-phase-on: NEVER
1056                   abort-all-job: true
1057                   git-revision: false
1058
1059                 - name: 'apex-run-deploy-test-baremetal-master'
1060                   node-parameters: false
1061                   current-parameters: false
1062                   predefined-parameters: |
1063                     DEPLOY_SCENARIO=os-odl-nofeature-noha
1064                     OPNFV_CLEAN=yes
1065                   kill-phase-on: NEVER
1066                   abort-all-job: true
1067                   git-revision: false
1068
1069
1070
1071 # snapshot create
1072 - job-template:
1073     name: 'apex-create-snapshot'
1074
1075     # Job template for clean
1076     #
1077     # Required Variables:
1078     #     stream:    branch with - in place of / (eg. stable)
1079
1080     disabled: false
1081
1082     builders:
1083         - shell:
1084             !include-raw-escape: ./apex-snapshot-create.sh
1085
1086 # snapshot upload
1087 - job-template:
1088     name: 'apex-upload-snapshot'
1089
1090     # Job template for clean
1091     #
1092     # Required Variables:
1093     #     stream:    branch with - in place of / (eg. stable)
1094
1095     disabled: false
1096
1097     builders:
1098         - inject:
1099            properties-content: ARTIFACT_TYPE=snapshot
1100         - 'apex-upload-artifact'
1101
1102 # CSIT promote
1103 - job-template:
1104     name: 'apex-csit-promote-daily-{stream}'
1105
1106     # Job template for promoting CSIT Snapshots
1107     #
1108     # Required Variables:
1109     #     stream:    branch with - in place of / (eg. stable)
1110     #     branch:    branch (eg. stable)
1111     node: '{virtual-slave}'
1112     project-type: 'multijob'
1113     disabled: false
1114
1115     scm:
1116         - git-scm
1117
1118     parameters:
1119         - project-parameter:
1120             project: '{project}'
1121             branch: '{branch}'
1122         - apex-parameter:
1123             gs-pathname: '{gs-pathname}'
1124
1125     properties:
1126         - build-blocker:
1127             use-build-blocker: true
1128             block-level: 'NODE'
1129             blocking-jobs:
1130                 - 'apex-verify.*'
1131                 - 'apex-deploy.*'
1132                 - 'apex-runner.*'
1133                 - 'apex-daily.*'
1134
1135     triggers:
1136         - timed: '0 12 * * 0'
1137
1138     builders:
1139         - multijob:
1140             name: build
1141             condition: SUCCESSFUL
1142             projects:
1143                 - name: 'apex-build-{stream}'
1144                   current-parameters: false
1145                   predefined-parameters: |
1146                     GERRIT_BRANCH=$GERRIT_BRANCH
1147                     GERRIT_REFSPEC=$GERRIT_REFSPEC
1148                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1149                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1150                   node-parameters: false
1151                   kill-phase-on: FAILURE
1152                   abort-all-job: true
1153                   git-revision: true
1154         - multijob:
1155             name: deploy-virtual
1156             condition: SUCCESSFUL
1157             projects:
1158                 - name: 'apex-deploy-virtual-{stream}'
1159                   current-parameters: false
1160                   predefined-parameters: |
1161                     DEPLOY_SCENARIO=os-odl_l3-csit-noha
1162                     OPNFV_CLEAN=yes
1163                     GERRIT_BRANCH=$GERRIT_BRANCH
1164                     GERRIT_REFSPEC=$GERRIT_REFSPEC
1165                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1166                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1167                   node-parameters: true
1168                   kill-phase-on: FAILURE
1169                   abort-all-job: true
1170                   git-revision: false
1171         - multijob:
1172             name: functest-smoke
1173             condition: SUCCESSFUL
1174             projects:
1175               - name: 'functest-apex-virtual-suite-{stream}'
1176                 current-parameters: false
1177                 predefined-parameters: |
1178                   DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
1179                   FUNCTEST_SUITE_NAME=tempest_smoke_serial
1180                   GERRIT_BRANCH=$GERRIT_BRANCH
1181                   GERRIT_REFSPEC=$GERRIT_REFSPEC
1182                   GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1183                   GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1184                 node-parameters: true
1185                 kill-phase-on: FAILURE
1186                 abort-all-job: true
1187                 git-revision: false
1188         - multijob:
1189             name: create snapshot
1190             condition: SUCCESSFUL
1191             projects:
1192               - name: 'apex-create-snapshot'
1193                 current-parameters: true
1194                 node-parameters: true
1195                 kill-phase-on: FAILURE
1196                 abort-all-job: true
1197                 git-revision: false
1198         - multijob:
1199             name: upload snapshot
1200             condition: SUCCESSFUL
1201             projects:
1202               - name: 'apex-upload-snapshot'
1203                 current-parameters: true
1204                 node-parameters: true
1205                 kill-phase-on: FAILURE
1206                 abort-all-job: true
1207                 git-revision: false
1208
1209 # FDIO promote
1210 - job-template:
1211     name: 'apex-fdio-promote-daily-{stream}'
1212
1213     # Job template for promoting CSIT Snapshots
1214     #
1215     # Required Variables:
1216     #     stream:    branch with - in place of / (eg. stable)
1217     #     branch:    branch (eg. stable)
1218     node: '{virtual-slave}'
1219     project-type: 'multijob'
1220     disabled: false
1221
1222     scm:
1223         - git-scm
1224
1225     parameters:
1226         - project-parameter:
1227             project: '{project}'
1228             branch: '{branch}'
1229         - apex-parameter:
1230             gs-pathname: '{gs-pathname}'
1231
1232     properties:
1233         - build-blocker:
1234             use-build-blocker: true
1235             block-level: 'NODE'
1236             blocking-jobs:
1237                 - 'apex-verify.*'
1238                 - 'apex-deploy.*'
1239                 - 'apex-runner.*'
1240                 - 'apex-daily.*'
1241
1242     builders:
1243         - multijob:
1244             name: build
1245             condition: SUCCESSFUL
1246             projects:
1247                 - name: 'apex-build-{stream}'
1248                   current-parameters: false
1249                   predefined-parameters: |
1250                     GERRIT_BRANCH=$GERRIT_BRANCH
1251                     GERRIT_REFSPEC=$GERRIT_REFSPEC
1252                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1253                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1254                   node-parameters: false
1255                   kill-phase-on: FAILURE
1256                   abort-all-job: true
1257                   git-revision: true
1258         - multijob:
1259             name: deploy-virtual
1260             condition: SUCCESSFUL
1261             projects:
1262                 - name: 'apex-deploy-virtual-{stream}'
1263                   current-parameters: false
1264                   predefined-parameters: |
1265                     DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
1266                     OPNFV_CLEAN=yes
1267                     GERRIT_BRANCH=$GERRIT_BRANCH
1268                     GERRIT_REFSPEC=$GERRIT_REFSPEC
1269                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1270                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1271                   node-parameters: true
1272                   kill-phase-on: FAILURE
1273                   abort-all-job: true
1274                   git-revision: false
1275         - multijob:
1276             name: create snapshot
1277             condition: SUCCESSFUL
1278             projects:
1279               - name: 'apex-create-snapshot'
1280                 current-parameters: true
1281                 node-parameters: true
1282                 kill-phase-on: FAILURE
1283                 abort-all-job: true
1284                 git-revision: false
1285         - multijob:
1286             name: upload snapshot
1287             condition: SUCCESSFUL
1288             projects:
1289               - name: 'apex-upload-snapshot'
1290                 current-parameters: true
1291                 node-parameters: true
1292                 kill-phase-on: FAILURE
1293                 abort-all-job: true
1294                 git-revision: false
1295
1296 ########################
1297 # parameter macros
1298 ########################
1299 - parameter:
1300     name: apex-parameter
1301     parameters:
1302         - string:
1303             name: ARTIFACT_NAME
1304             default: 'latest'
1305             description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1306         - string:
1307             name: ARTIFACT_VERSION
1308             default: 'daily'
1309             description: "Artifact version type"
1310         - string:
1311             name: BUILD_DIRECTORY
1312             default: $WORKSPACE/.build
1313             description: "Directory where the build artifact will be located upon the completion of the build."
1314         - string:
1315             name: CACHE_DIRECTORY
1316             default: $HOME/opnfv/apex-cache{gs-pathname}
1317             description: "Directory where the cache to be used during the build is located."
1318         - string:
1319             name: GIT_BASE
1320             default: https://gerrit.opnfv.org/gerrit/$PROJECT
1321             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1322         - string:
1323             name: GS_PATHNAME
1324             default: '{gs-pathname}'
1325             description: "Version directory where opnfv artifacts are stored in gs repository"
1326         - string:
1327             name: GS_URL
1328             default: $GS_BASE{gs-pathname}
1329             description: "URL to Google Storage."
1330
1331 ########################
1332 # builder macros
1333 ########################
1334 - builder:
1335     name: 'apex-unit-test'
1336     builders:
1337         - shell:
1338             !include-raw: ./apex-unit-test.sh
1339
1340 - builder:
1341     name: 'apex-build'
1342     builders:
1343         - shell:
1344             !include-raw: ./apex-build.sh
1345
1346 - builder:
1347     name: 'apex-workspace-cleanup'
1348     builders:
1349         - shell:
1350             !include-raw: ./apex-workspace-cleanup.sh
1351
1352 - builder:
1353     name: 'apex-iso-verify'
1354     builders:
1355         - shell:
1356             !include-raw: ./apex-iso-verify.sh
1357
1358
1359 - builder:
1360     name: 'apex-upload-artifact'
1361     builders:
1362         - shell:
1363             !include-raw: ./apex-upload-artifact.sh
1364
1365 - builder:
1366     name: 'apex-download-artifact'
1367     builders:
1368         - shell:
1369             !include-raw: ./apex-download-artifact.sh
1370
1371 - builder:
1372     name: 'apex-deploy'
1373     builders:
1374         - shell:
1375             !include-raw: ./apex-deploy.sh
1376
1377 #######################
1378 # trigger macros
1379 ########################
1380 - trigger:
1381     name: 'apex-master'
1382     triggers:
1383         - timed: '0 3 1 1 7'
1384 - trigger:
1385     name: 'apex-danube'
1386     triggers:
1387         - timed: '0 12 * * *'