Merge "add missing dist files ignored by .gitignore"
[releng.git] / jjb / apex / apex.yml.j2
1 - project:
2     name: 'apex'
3     project: 'apex'
4     jobs:
5         - 'apex-verify-{stream}'
6         - 'apex-verify-gate-{stream}'
7         - 'apex-verify-unit-tests-{stream}'
8         - 'apex-runner-cperf-{stream}'
9         - 'apex-build-{stream}'
10         - 'apex-deploy-{platform}-{stream}'
11         - 'apex-daily-master'
12         - 'apex-daily-danube'
13         - 'apex-csit-promote-daily-{stream}'
14         - 'apex-fdio-promote-daily-{stream}'
15         - 'apex-verify-iso-{stream}'
16         - 'apex-deploy-test-baremetal-{stream}'
17         - 'apex-upload-snapshot'
18         - 'apex-create-snapshot'
19     # stream:    branch with - in place of / (eg. stable-arno)
20     # branch:    branch (eg. stable/arno)
21     stream:
22         - master:
23             branch: 'master'
24             gs-pathname: ''
25             build-slave: 'apex-build-master'
26             virtual-slave: 'apex-virtual-master'
27             baremetal-slave: 'apex-baremetal-master'
28             verify-scenario: 'os-odl-nofeature-ha'
29
30         - danube:
31             branch: 'stable/danube'
32             gs-pathname: '/danube'
33             build-slave: 'apex-build-danube'
34             virtual-slave: 'apex-virtual-danube'
35             baremetal-slave: 'apex-baremetal-danube'
36             verify-scenario: 'os-odl_l3-nofeature-ha'
37             disabled: false
38
39     platform:
40          - 'baremetal'
41          - 'virtual'
42
43 # Unit Test
44 - job-template:
45     name: 'apex-verify-unit-tests-{stream}'
46
47     node: '{build-slave}'
48
49     concurrent: true
50
51     parameters:
52         - apex-parameter:
53             gs-pathname: '{gs-pathname}'
54         - project-parameter:
55             project: '{project}'
56             branch: '{branch}'
57
58     scm:
59         - git-scm-gerrit
60
61     triggers:
62         - gerrit:
63             server-name: 'gerrit.opnfv.org'
64             trigger-on:
65                 - patchset-created-event:
66                     exclude-drafts: 'false'
67                     exclude-trivial-rebase: 'false'
68                     exclude-no-code-change: 'true'
69                 - draft-published-event
70                 - comment-added-contains-event:
71                     comment-contains-value: 'recheck'
72                 - comment-added-contains-event:
73                     comment-contains-value: 'reverify'
74             projects:
75               - project-compare-type: 'ANT'
76                 project-pattern: 'apex'
77                 branches:
78                   - branch-compare-type: 'ANT'
79                     branch-pattern: '**/{branch}'
80                 file-paths:
81                   - compare-type: ANT
82                     pattern: 'tests/**'
83     properties:
84         - logrotate-default
85         - throttle:
86             max-per-node: 1
87             max-total: 10
88             option: 'project'
89
90     builders:
91         - shell:
92             !include-raw-escape: ./apex-unit-test.sh
93
94 # Verify
95 - job-template:
96     name: 'apex-verify-{stream}'
97
98     node: '{virtual-slave}'
99
100     concurrent: true
101
102     project-type: 'multijob'
103
104     parameters:
105         - apex-parameter:
106             gs-pathname: '{gs-pathname}/dev'
107         - project-parameter:
108             project: '{project}'
109             branch: '{branch}'
110         - string:
111             name: ARTIFACT_VERSION
112             default: dev
113             description: "Used for overriding the ARTIFACT_VERSION"
114     scm:
115         - git-scm-gerrit
116
117     triggers:
118         - gerrit:
119             server-name: 'gerrit.opnfv.org'
120             trigger-on:
121                 - patchset-created-event:
122                     exclude-drafts: 'false'
123                     exclude-trivial-rebase: 'false'
124                     exclude-no-code-change: 'true'
125                 - draft-published-event
126                 - comment-added-contains-event:
127                     comment-contains-value: 'recheck'
128                 - comment-added-contains-event:
129                     comment-contains-value: 'reverify'
130             projects:
131               - project-compare-type: 'ANT'
132                 project-pattern: 'apex'
133                 branches:
134                   - branch-compare-type: 'ANT'
135                     branch-pattern: '**/{branch}'
136                 file-paths:
137                   - compare-type: ANT
138                     pattern: 'ci/**'
139                   - compare-type: ANT
140                     pattern: 'build/**'
141                   - compare-type: ANT
142                     pattern: 'lib/**'
143                   - compare-type: ANT
144                     pattern: 'config/**'
145
146     properties:
147         - logrotate-default
148         - build-blocker:
149             use-build-blocker: true
150             block-level: 'NODE'
151             blocking-jobs:
152                 - 'apex-daily.*'
153                 - 'apex-deploy.*'
154                 - 'apex-runner.*'
155         - throttle:
156             max-per-node: 3
157             max-total: 10
158             option: 'project'
159
160     builders:
161         - description-setter:
162             description: "Built on $NODE_NAME"
163         - multijob:
164             name: basic
165             condition: SUCCESSFUL
166             projects:
167                 - name: 'apex-verify-unit-tests-{stream}'
168                   current-parameters: false
169                   predefined-parameters: |
170                     GERRIT_BRANCH=$GERRIT_BRANCH
171                     GERRIT_REFSPEC=$GERRIT_REFSPEC
172                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
173                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
174                   node-parameters: false
175                   kill-phase-on: FAILURE
176                   abort-all-job: true
177                   git-revision: true
178         - multijob:
179             name: build
180             condition: SUCCESSFUL
181             projects:
182                 - name: 'apex-build-{stream}'
183                   current-parameters: false
184                   predefined-parameters: |
185                     ARTIFACT_VERSION=$ARTIFACT_VERSION
186                     GERRIT_BRANCH=$GERRIT_BRANCH
187                     GERRIT_REFSPEC=$GERRIT_REFSPEC
188                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
189                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
190                   node-parameters: false
191                   kill-phase-on: FAILURE
192                   abort-all-job: true
193                   git-revision: true
194         - multijob:
195             name: deploy-virtual
196             condition: SUCCESSFUL
197             projects:
198                 - name: 'apex-deploy-virtual-{stream}'
199                   current-parameters: false
200                   predefined-parameters: |
201                     ARTIFACT_VERSION=$ARTIFACT_VERSION
202                     DEPLOY_SCENARIO={verify-scenario}
203                     OPNFV_CLEAN=yes
204                     GERRIT_BRANCH=$GERRIT_BRANCH
205                     GERRIT_REFSPEC=$GERRIT_REFSPEC
206                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
207                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
208                   node-parameters: true
209                   kill-phase-on: FAILURE
210                   abort-all-job: true
211                   git-revision: true
212         - multijob:
213             name: functest-smoke
214             condition: SUCCESSFUL
215             projects:
216               - name: 'functest-apex-virtual-suite-{stream}'
217                 current-parameters: false
218                 predefined-parameters: |
219                   DEPLOY_SCENARIO={verify-scenario}
220                   FUNCTEST_SUITE_NAME=healthcheck
221                   GERRIT_BRANCH=$GERRIT_BRANCH
222                   GERRIT_REFSPEC=$GERRIT_REFSPEC
223                   GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
224                   GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
225                 node-parameters: true
226                 kill-phase-on: FAILURE
227                 abort-all-job: true
228                 git-revision: false
229
230 # Verify Scenario Gate
231 - job-template:
232     name: 'apex-verify-gate-{stream}'
233
234     node: '{virtual-slave}'
235
236     concurrent: true
237
238     project-type: 'multijob'
239
240     parameters:
241         - apex-parameter:
242             gs-pathname: '{gs-pathname}/dev'
243         - project-parameter:
244             project: '{project}'
245             branch: '{branch}'
246         - string:
247             name: GIT_BASE
248             default: https://gerrit.opnfv.org/gerrit/$PROJECT
249             description: "Used for overriding the GIT URL coming from parameters macro."
250         - string:
251             name: ARTIFACT_VERSION
252             default: dev
253             description: "Used for overriding the ARTIFACT_VERSION"
254
255     scm:
256         - git-scm-gerrit
257
258     triggers:
259         - gerrit:
260             server-name: 'gerrit.opnfv.org'
261             trigger-on:
262                 - comment-added-contains-event:
263                     comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
264             projects:
265               - project-compare-type: 'ANT'
266                 project-pattern: 'apex'
267                 branches:
268                   - branch-compare-type: 'ANT'
269                     branch-pattern: '**/{branch}'
270                 file-paths:
271                   - compare-type: ANT
272                     pattern: 'ci/**'
273                   - compare-type: ANT
274                     pattern: 'build/**'
275                   - compare-type: ANT
276                     pattern: 'lib/**'
277                   - compare-type: ANT
278                     pattern: 'config/**'
279
280     properties:
281         - logrotate-default
282         - build-blocker:
283             use-build-blocker: true
284             block-level: 'NODE'
285             blocking-jobs:
286                 - 'apex-daily.*'
287                 - 'apex-deploy.*'
288                 - 'apex-runner.*'
289         - throttle:
290             max-per-node: 3
291             max-total: 10
292             option: 'project'
293
294     builders:
295         - multijob:
296             name: deploy-virtual
297             condition: SUCCESSFUL
298             projects:
299                 - name: 'apex-deploy-virtual-{stream}'
300                   current-parameters: false
301                   predefined-parameters: |
302                     ARTIFACT_VERSION=$ARTIFACT_VERSION
303                     DEPLOY_SCENARIO=gate
304                     OPNFV_CLEAN=yes
305                     GERRIT_BRANCH=$GERRIT_BRANCH
306                     GERRIT_REFSPEC=$GERRIT_REFSPEC
307                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
308                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
309                   node-parameters: true
310                   kill-phase-on: FAILURE
311                   abort-all-job: true
312                   git-revision: true
313         - multijob:
314             name: functest-smoke
315             condition: SUCCESSFUL
316             projects:
317               - name: 'functest-apex-virtual-suite-{stream}'
318                 current-parameters: false
319                 predefined-parameters: |
320                   DEPLOY_SCENARIO={verify-scenario}
321                   FUNCTEST_SUITE_NAME=healthcheck
322                   GERRIT_BRANCH=$GERRIT_BRANCH
323                   GERRIT_REFSPEC=$GERRIT_REFSPEC
324                   GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
325                   GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
326                 node-parameters: true
327                 kill-phase-on: FAILURE
328                 abort-all-job: true
329                 git-revision: false
330
331 - job-template:
332     name: 'apex-runner-cperf-{stream}'
333
334     # runner cperf job
335     project-type: 'multijob'
336     node: 'intel-pod2'
337
338     disabled: false
339
340     parameters:
341         - apex-parameter:
342             gs-pathname: '{gs-pathname}'
343         - project-parameter:
344             project: '{project}'
345             branch: '{branch}'
346         - string:
347             name: GIT_BASE
348             default: https://gerrit.opnfv.org/gerrit/$PROJECT
349             description: "Used for overriding the GIT URL coming from parameters macro."
350
351     scm:
352         - git-scm
353
354     properties:
355         - logrotate-default
356         - build-blocker:
357             use-build-blocker: false
358             block-level: 'NODE'
359             blocking-jobs:
360                 - 'apex-deploy.*'
361         - throttle:
362             max-per-node: 1
363             max-total: 10
364             option: 'project'
365
366     builders:
367         - description-setter:
368             description: "Deployed on $NODE_NAME"
369         - multijob:
370             name: 'Baremetal Deploy'
371             condition: ALWAYS
372             projects:
373                 - name: 'apex-deploy-baremetal-{stream}'
374                   node-parameters: false
375                   current-parameters: true
376                   predefined-parameters: |
377                     OPNFV_CLEAN=yes
378                     DEPLOY_SCENARIO={verify-scenario}
379                   kill-phase-on: FAILURE
380                   abort-all-job: true
381                   git-revision: false
382         - multijob:
383             name: Functest
384             condition: ALWAYS
385             projects:
386                 - name: 'functest-apex-baremetal-daily-{stream}'
387                   node-parameters: true
388                   current-parameters: false
389                   predefined-parameters:
390                     DEPLOY_SCENARIO={verify-scenario}
391                   kill-phase-on: NEVER
392                   abort-all-job: false
393                   git-revision: false
394
395 # Build phase
396 - job-template:
397     name: 'apex-build-{stream}'
398
399     # Job template for builds
400     #
401     # Required Variables:
402     #     stream:    branch with - in place of / (eg. stable)
403     #     branch:    branch (eg. stable)
404     node: '{build-slave}'
405
406     disabled: false
407
408     concurrent: true
409
410     parameters:
411         - '{project}-defaults'
412         - project-parameter:
413             project: '{project}'
414             branch: '{branch}'
415         - apex-parameter:
416             gs-pathname: '{gs-pathname}'
417
418     scm:
419         - git-scm-gerrit
420
421     wrappers:
422         - timeout:
423             timeout: 90
424             fail: true
425
426     properties:
427         - logrotate-default
428         - throttle:
429             max-per-node: 3
430             max-total: 10
431             option: 'project'
432
433     builders:
434         - 'apex-build'
435         - inject:
436            properties-content: ARTIFACT_TYPE=rpm
437         - 'apex-upload-artifact'
438
439 # ISO verify job
440 - job-template:
441     name: 'apex-verify-iso-{stream}'
442
443     # Job template for builds
444     #
445     # Required Variables:
446     #     stream:    branch with - in place of / (eg. stable)
447     #     branch:    branch (eg. stable)
448     node: '{virtual-slave}'
449
450     disabled: false
451
452     concurrent: true
453
454     parameters:
455         - project-parameter:
456             project: '{project}'
457             branch: '{branch}'
458         - apex-parameter:
459             gs-pathname: '{gs-pathname}'
460         - string:
461             name: GIT_BASE
462             default: https://gerrit.opnfv.org/gerrit/$PROJECT
463             description: "Used for overriding the GIT URL coming from parameters macro."
464
465     scm:
466         - git-scm
467
468     properties:
469         - logrotate-default
470         - build-blocker:
471             use-build-blocker: true
472             block-level: 'NODE'
473             blocking-jobs:
474                 - 'apex-deploy.*'
475         - throttle:
476             max-per-node: 1
477             max-total: 10
478             option: 'project'
479
480     builders:
481         - 'apex-iso-verify'
482         - inject:
483            properties-content: ARTIFACT_TYPE=iso
484         - 'apex-upload-artifact'
485
486 # Deploy job
487 - job-template:
488     name: 'apex-deploy-{platform}-{stream}'
489
490     # Job template for virtual deployment
491     #
492     # Required Variables:
493     #     stream:    branch with - in place of / (eg. stable)
494     #     branch:    branch (eg. stable)
495     node: 'apex-{platform}-{stream}'
496
497     concurrent: true
498
499     disabled: false
500
501     scm:
502         - git-scm-gerrit
503
504     wrappers:
505         - timeout:
506             timeout: 120
507             fail: true
508
509     parameters:
510         - project-parameter:
511             project: '{project}'
512             branch: '{branch}'
513         - apex-parameter:
514             gs-pathname: '{gs-pathname}'
515         - string:
516             name: DEPLOY_SCENARIO
517             default: '{verify-scenario}'
518             description: "Scenario to deploy with."
519         - string:
520             name: OPNFV_CLEAN
521             default: 'no'
522             description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
523
524     properties:
525         - logrotate-default
526         - build-blocker:
527             use-build-blocker: true
528             block-level: 'NODE'
529             blocking-jobs:
530                 - 'apex-deploy.*'
531         - throttle:
532             max-per-node: 1
533             max-total: 10
534             option: 'project'
535
536     builders:
537         - description-setter:
538             description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
539         - 'apex-download-artifact'
540         - 'apex-deploy'
541         - 'apex-workspace-cleanup'
542
543
544 # Baremetal Deploy and Test
545 - job-template:
546     name: 'apex-deploy-test-baremetal-{stream}'
547
548     # Job template for daily build
549     #
550     # Required Variables:
551     #     stream:    branch with - in place of / (eg. stable)
552     #     branch:    branch (eg. stable)
553     project-type: 'multijob'
554
555     disabled: false
556
557     scm:
558         - git-scm
559
560     parameters:
561         - '{project}-defaults'
562         - '{project}-baremetal-{stream}-defaults'
563         - project-parameter:
564             project: '{project}'
565             branch: '{branch}'
566         - apex-parameter:
567             gs-pathname: '{gs-pathname}'
568         - string:
569             name: DEPLOY_SCENARIO
570             default: '{verify-scenario}'
571             description: "Scenario to deploy with."
572     properties:
573         - logrotate-default
574         - build-blocker:
575             use-build-blocker: true
576             block-level: 'NODE'
577             blocking-jobs:
578                 - 'apex-verify.*'
579                 - 'apex-deploy.*'
580                 - 'apex-runner.*'
581                 - 'apex-.*-promote.*'
582     builders:
583         - description-setter:
584             description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
585         - multijob:
586             name: 'Baremetal Deploy'
587             condition: ALWAYS
588             projects:
589                 - name: 'apex-deploy-baremetal-{stream}'
590                   node-parameters: true
591                   current-parameters: true
592                   predefined-parameters: |
593                     OPNFV_CLEAN=yes
594                   kill-phase-on: FAILURE
595                   abort-all-job: true
596                   git-revision: false
597         - multijob:
598             name: Functest
599             condition: ALWAYS
600             projects:
601                 - name: 'functest-apex-baremetal-daily-{stream}'
602                   node-parameters: true
603                   current-parameters: false
604                   predefined-parameters:
605                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
606                   kill-phase-on: NEVER
607                   abort-all-job: false
608                   git-revision: false
609         - multijob:
610             name: Yardstick
611             condition: ALWAYS
612             projects:
613                 - name: 'yardstick-apex-baremetal-daily-{stream}'
614                   node-parameters: true
615                   current-parameters: false
616                   predefined-parameters:
617                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
618                   kill-phase-on: NEVER
619                   abort-all-job: false
620                   git-revision: false
621
622 {% for stream in scenarios %}
623 # {{ stream }} Daily
624 - job-template:
625     name: 'apex-daily-{{ stream }}'
626
627     # Job template for daily build
628     #
629     # Required Variables:
630     #     stream:    branch with - in place of / (eg. stable)
631     #     branch:    branch (eg. stable)
632     project-type: 'multijob'
633
634     node: '{{ build_slave[stream] }}'
635
636     disabled: false
637
638     scm:
639         - git-scm
640
641     parameters:
642         - '{project}-defaults'
643         - '{project}-baremetal-{{ stream }}-defaults'
644         - project-parameter:
645             project: '{project}'
646             branch: '{{ branch[stream] }}'
647         - apex-parameter:
648             gs-pathname: '{{ gspathname[stream] }}'
649
650     properties:
651         - logrotate-default
652
653     triggers:
654         - 'apex-{{ stream }}'
655
656     builders:
657         - multijob:
658             name: build
659             condition: SUCCESSFUL
660             projects:
661                 - name: 'apex-build-{{ stream }}'
662                   current-parameters: false
663                   predefined-parameters: |
664                     GERRIT_BRANCH=$GERRIT_BRANCH
665                     GERRIT_REFSPEC=$GERRIT_REFSPEC
666                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
667                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
668                   node-parameters: true
669                   kill-phase-on: FAILURE
670                   abort-all-job: true
671                   git-revision: true
672         - multijob:
673             name: 'Verify and upload ISO'
674             condition: SUCCESSFUL
675             projects:
676                 - name: 'apex-verify-iso-{{ stream }}'
677                   current-parameters: false
678                   predefined-parameters: |
679                     BUILD_DIRECTORY=apex-build-{{ stream }}/.build
680                     GERRIT_BRANCH=$GERRIT_BRANCH
681                     GERRIT_REFSPEC=$GERRIT_REFSPEC
682                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
683                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
684                   node-parameters: true
685                   kill-phase-on: FAILURE
686                   abort-all-job: true
687                   git-revision: true
688         - multijob:
689             name: Baremetal Deploy and Test Phase
690             condition: SUCCESSFUL
691             projects:
692 {% for scenario in scenarios[stream] %}
693                 - name: 'apex-deploy-test-baremetal-{{ stream }}'
694                   node-parameters: false
695                   current-parameters: false
696                   predefined-parameters: |
697                     DEPLOY_SCENARIO={{scenario}}
698                     OPNFV_CLEAN=yes
699                   kill-phase-on: NEVER
700                   abort-all-job: true
701                   git-revision: false
702 {% endfor %}
703 {% endfor %}
704
705 # snapshot create
706 - job-template:
707     name: 'apex-create-snapshot'
708
709     # Job template for clean
710     #
711     # Required Variables:
712     #     stream:    branch with - in place of / (eg. stable)
713
714     disabled: false
715
716     builders:
717         - shell:
718             !include-raw-escape: ./apex-snapshot-create.sh
719
720 # snapshot upload
721 - job-template:
722     name: 'apex-upload-snapshot'
723
724     # Job template for clean
725     #
726     # Required Variables:
727     #     stream:    branch with - in place of / (eg. stable)
728
729     disabled: false
730
731     builders:
732         - inject:
733            properties-content: ARTIFACT_TYPE=snapshot
734         - 'apex-upload-artifact'
735
736 # CSIT promote
737 - job-template:
738     name: 'apex-csit-promote-daily-{stream}'
739
740     # Job template for promoting CSIT Snapshots
741     #
742     # Required Variables:
743     #     stream:    branch with - in place of / (eg. stable)
744     #     branch:    branch (eg. stable)
745     node: '{virtual-slave}'
746     project-type: 'multijob'
747     disabled: false
748
749     scm:
750         - git-scm
751
752     parameters:
753         - project-parameter:
754             project: '{project}'
755             branch: '{branch}'
756         - apex-parameter:
757             gs-pathname: '{gs-pathname}'
758
759     properties:
760         - build-blocker:
761             use-build-blocker: true
762             block-level: 'NODE'
763             blocking-jobs:
764                 - 'apex-verify.*'
765                 - 'apex-deploy.*'
766                 - 'apex-runner.*'
767                 - 'apex-daily.*'
768
769     triggers:
770         - timed: '0 12 * * 0'
771
772     builders:
773         - multijob:
774             name: build
775             condition: SUCCESSFUL
776             projects:
777                 - name: 'apex-build-{stream}'
778                   current-parameters: false
779                   predefined-parameters: |
780                     GERRIT_BRANCH=$GERRIT_BRANCH
781                     GERRIT_REFSPEC=$GERRIT_REFSPEC
782                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
783                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
784                   node-parameters: false
785                   kill-phase-on: FAILURE
786                   abort-all-job: true
787                   git-revision: true
788         - multijob:
789             name: deploy-virtual
790             condition: SUCCESSFUL
791             projects:
792                 - name: 'apex-deploy-virtual-{stream}'
793                   current-parameters: false
794                   predefined-parameters: |
795                     DEPLOY_SCENARIO=os-odl_l3-csit-noha
796                     OPNFV_CLEAN=yes
797                     GERRIT_BRANCH=$GERRIT_BRANCH
798                     GERRIT_REFSPEC=$GERRIT_REFSPEC
799                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
800                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
801                   node-parameters: true
802                   kill-phase-on: FAILURE
803                   abort-all-job: true
804                   git-revision: false
805         - multijob:
806             name: functest-smoke
807             condition: SUCCESSFUL
808             projects:
809               - name: 'functest-apex-virtual-suite-{stream}'
810                 current-parameters: false
811                 predefined-parameters: |
812                   DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
813                   FUNCTEST_SUITE_NAME=tempest_smoke_serial
814                   GERRIT_BRANCH=$GERRIT_BRANCH
815                   GERRIT_REFSPEC=$GERRIT_REFSPEC
816                   GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
817                   GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
818                 node-parameters: true
819                 kill-phase-on: FAILURE
820                 abort-all-job: true
821                 git-revision: false
822         - multijob:
823             name: create snapshot
824             condition: SUCCESSFUL
825             projects:
826               - name: 'apex-create-snapshot'
827                 current-parameters: true
828                 node-parameters: true
829                 kill-phase-on: FAILURE
830                 abort-all-job: true
831                 git-revision: false
832         - multijob:
833             name: upload snapshot
834             condition: SUCCESSFUL
835             projects:
836               - name: 'apex-upload-snapshot'
837                 current-parameters: true
838                 node-parameters: true
839                 kill-phase-on: FAILURE
840                 abort-all-job: true
841                 git-revision: false
842
843 # FDIO promote
844 - job-template:
845     name: 'apex-fdio-promote-daily-{stream}'
846
847     # Job template for promoting CSIT Snapshots
848     #
849     # Required Variables:
850     #     stream:    branch with - in place of / (eg. stable)
851     #     branch:    branch (eg. stable)
852     node: '{virtual-slave}'
853     project-type: 'multijob'
854     disabled: false
855
856     scm:
857         - git-scm
858
859     parameters:
860         - project-parameter:
861             project: '{project}'
862             branch: '{branch}'
863         - apex-parameter:
864             gs-pathname: '{gs-pathname}'
865
866     properties:
867         - build-blocker:
868             use-build-blocker: true
869             block-level: 'NODE'
870             blocking-jobs:
871                 - 'apex-verify.*'
872                 - 'apex-deploy.*'
873                 - 'apex-runner.*'
874                 - 'apex-daily.*'
875
876     builders:
877         - multijob:
878             name: build
879             condition: SUCCESSFUL
880             projects:
881                 - name: 'apex-build-{stream}'
882                   current-parameters: false
883                   predefined-parameters: |
884                     GERRIT_BRANCH=$GERRIT_BRANCH
885                     GERRIT_REFSPEC=$GERRIT_REFSPEC
886                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
887                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
888                   node-parameters: false
889                   kill-phase-on: FAILURE
890                   abort-all-job: true
891                   git-revision: true
892         - multijob:
893             name: deploy-virtual
894             condition: SUCCESSFUL
895             projects:
896                 - name: 'apex-deploy-virtual-{stream}'
897                   current-parameters: false
898                   predefined-parameters: |
899                     DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
900                     OPNFV_CLEAN=yes
901                     GERRIT_BRANCH=$GERRIT_BRANCH
902                     GERRIT_REFSPEC=$GERRIT_REFSPEC
903                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
904                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
905                   node-parameters: true
906                   kill-phase-on: FAILURE
907                   abort-all-job: true
908                   git-revision: false
909         - multijob:
910             name: create snapshot
911             condition: SUCCESSFUL
912             projects:
913               - name: 'apex-create-snapshot'
914                 current-parameters: true
915                 node-parameters: true
916                 kill-phase-on: FAILURE
917                 abort-all-job: true
918                 git-revision: false
919         - multijob:
920             name: upload snapshot
921             condition: SUCCESSFUL
922             projects:
923               - name: 'apex-upload-snapshot'
924                 current-parameters: true
925                 node-parameters: true
926                 kill-phase-on: FAILURE
927                 abort-all-job: true
928                 git-revision: false
929
930 - job-template:
931     name: 'apex-gs-clean-{stream}'
932
933     # Job template for clean
934     #
935     # Required Variables:
936     #     stream:    branch with - in place of / (eg. stable)
937     node: '{slave}'
938
939     disabled: false
940
941     parameters:
942         - project-parameter:
943             project: '{project}'
944             branch: '{branch}'
945         - apex-parameter:
946             gs-pathname: '{gs-pathname}'
947
948     builders:
949         - 'apex-gs-clean'
950
951     triggers:
952         - 'apex-gs-clean-{stream}'
953
954 ########################
955 # parameter macros
956 ########################
957 - parameter:
958     name: apex-parameter
959     parameters:
960         - string:
961             name: ARTIFACT_NAME
962             default: 'latest'
963             description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
964         - string:
965             name: ARTIFACT_VERSION
966             default: 'daily'
967             description: "Artifact version type"
968         - string:
969             name: BUILD_DIRECTORY
970             default: $WORKSPACE/.build
971             description: "Directory where the build artifact will be located upon the completion of the build."
972         - string:
973             name: CACHE_DIRECTORY
974             default: $HOME/opnfv/apex-cache{gs-pathname}
975             description: "Directory where the cache to be used during the build is located."
976         - string:
977             name: GIT_BASE
978             default: https://gerrit.opnfv.org/gerrit/$PROJECT
979             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
980         - string:
981             name: GS_PATHNAME
982             default: '{gs-pathname}'
983             description: "Version directory where opnfv artifacts are stored in gs repository"
984         - string:
985             name: GS_URL
986             default: $GS_BASE{gs-pathname}
987             description: "URL to Google Storage."
988
989 ########################
990 # builder macros
991 ########################
992 - builder:
993     name: 'apex-unit-test'
994     builders:
995         - shell:
996             !include-raw: ./apex-unit-test.sh
997
998 - builder:
999     name: 'apex-build'
1000     builders:
1001         - shell:
1002             !include-raw: ./apex-build.sh
1003
1004 - builder:
1005     name: 'apex-workspace-cleanup'
1006     builders:
1007         - shell:
1008             !include-raw: ./apex-workspace-cleanup.sh
1009
1010 - builder:
1011     name: 'apex-iso-verify'
1012     builders:
1013         - shell:
1014             !include-raw: ./apex-iso-verify.sh
1015
1016
1017 - builder:
1018     name: 'apex-upload-artifact'
1019     builders:
1020         - shell:
1021             !include-raw: ./apex-upload-artifact.sh
1022
1023 - builder:
1024     name: 'apex-download-artifact'
1025     builders:
1026         - shell:
1027             !include-raw: ./apex-download-artifact.sh
1028
1029 - builder:
1030     name: 'apex-gs-cleanup'
1031     builders:
1032         - shell:
1033             !include-raw: ./apex-gs-cleanup.sh
1034
1035 - builder:
1036     name: 'apex-deploy'
1037     builders:
1038         - shell:
1039             !include-raw: ./apex-deploy.sh
1040
1041 #######################
1042 # trigger macros
1043 ########################
1044 - trigger:
1045     name: 'apex-master'
1046     triggers:
1047         - timed: '0 3 1 1 7'
1048 - trigger:
1049     name: 'apex-danube'
1050     triggers:
1051         - timed: '0 12 * * *'
1052 - trigger:
1053     name: 'apex-gs-clean-{stream}'
1054     triggers:
1055         - timed: '0 2 * * *'