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