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