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