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