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