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