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}'
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)
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'
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'
47 name: 'apex-verify-unit-tests-{stream}'
55 gs-pathname: '{gs-pathname}'
65 server-name: 'gerrit.opnfv.org'
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'
77 - project-compare-type: 'ANT'
78 project-pattern: 'apex'
80 - branch-compare-type: 'ANT'
81 branch-pattern: '**/{branch}'
94 !include-raw-escape: ./apex-unit-test.sh
98 name: 'apex-verify-{stream}'
100 node: '{virtual-slave}'
104 project-type: 'multijob'
108 gs-pathname: '{gs-pathname}/dev'
113 name: ARTIFACT_VERSION
115 description: "Used for overriding the ARTIFACT_VERSION"
121 server-name: 'gerrit.opnfv.org'
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'
133 - project-compare-type: 'ANT'
134 project-pattern: 'apex'
136 - branch-compare-type: 'ANT'
137 branch-pattern: '**/{branch}'
156 - description-setter:
157 description: "Built on $NODE_NAME"
160 condition: SUCCESSFUL
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
175 condition: SUCCESSFUL
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
191 condition: SUCCESSFUL
193 - name: 'apex-deploy-virtual-{stream}'
194 current-parameters: false
195 predefined-parameters: |
196 ARTIFACT_VERSION=$ARTIFACT_VERSION
197 DEPLOY_SCENARIO={verify-scenario}
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
208 # name: functest-smoke
209 # condition: SUCCESSFUL
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
225 # Verify Scenario Gate
227 name: 'apex-verify-gate-{stream}'
229 node: '{virtual-slave}'
233 project-type: 'multijob'
237 gs-pathname: '{gs-pathname}/dev'
243 default: https://gerrit.opnfv.org/gerrit/$PROJECT
244 description: "Used for overriding the GIT URL coming from parameters macro."
246 name: ARTIFACT_VERSION
248 description: "Used for overriding the ARTIFACT_VERSION"
255 server-name: 'gerrit.opnfv.org'
257 - comment-added-contains-event:
258 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
260 - project-compare-type: 'ANT'
261 project-pattern: 'apex'
263 - branch-compare-type: 'ANT'
264 branch-pattern: '**/{branch}'
285 condition: SUCCESSFUL
287 - name: 'apex-deploy-virtual-{stream}'
288 current-parameters: false
289 predefined-parameters: |
290 ARTIFACT_VERSION=$ARTIFACT_VERSION
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
302 # name: functest-smoke
303 # condition: SUCCESSFUL
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
320 name: 'apex-runner-cperf-{stream}'
323 project-type: 'multijob'
330 gs-pathname: '{gs-pathname}'
336 default: https://gerrit.opnfv.org/gerrit/$PROJECT
337 description: "Used for overriding the GIT URL coming from parameters macro."
345 use-build-blocker: false
355 - description-setter:
356 description: "Deployed on $NODE_NAME"
358 name: 'Baremetal Deploy'
361 - name: 'apex-deploy-baremetal-{stream}'
362 node-parameters: false
363 current-parameters: true
364 predefined-parameters: |
365 GERRIT_BRANCH=$GERRIT_BRANCH
368 DEPLOY_SCENARIO={verify-scenario}
369 kill-phase-on: FAILURE
374 condition: SUCCESSFUL
376 - name: 'cperf-apex-intel-pod2-daily-master'
377 node-parameters: true
378 current-parameters: false
379 predefined-parameters:
380 DEPLOY_SCENARIO={verify-scenario}
387 name: 'apex-build-{stream}'
389 # Job template for builds
391 # Required Variables:
392 # stream: branch with - in place of / (eg. stable)
393 # branch: branch (eg. stable)
394 node: '{build-slave}'
401 - '{project}-defaults'
406 gs-pathname: '{gs-pathname}'
419 max-per-node: {concurrent-builds}
423 use-build-blocker: true
426 - 'apex-verify-iso-{stream}'
431 properties-content: ARTIFACT_TYPE=rpm
432 - 'apex-upload-artifact'
436 name: 'apex-verify-iso-{stream}'
438 # Job template for builds
440 # Required Variables:
441 # stream: branch with - in place of / (eg. stable)
442 # branch: branch (eg. stable)
443 node: '{virtual-slave}'
454 gs-pathname: '{gs-pathname}'
457 default: https://gerrit.opnfv.org/gerrit/$PROJECT
458 description: "Used for overriding the GIT URL coming from parameters macro."
473 properties-content: ARTIFACT_TYPE=iso
474 - 'apex-upload-artifact'
478 name: 'apex-deploy-{platform}-{stream}'
480 # Job template for virtual deployment
482 # Required Variables:
483 # stream: branch with - in place of / (eg. stable)
484 # branch: branch (eg. stable)
485 node: 'apex-{platform}-{stream}'
504 gs-pathname: '{gs-pathname}'
506 name: DEPLOY_SCENARIO
507 default: '{verify-scenario}'
508 description: "Scenario to deploy with."
512 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
517 use-build-blocker: true
529 - description-setter:
530 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
531 - 'apex-download-artifact'
533 - 'apex-workspace-cleanup'
536 # Baremetal Deploy and Test
538 name: 'apex-run-deploy-test-baremetal-{stream}'
540 # Job template for daily build
542 # Required Variables:
543 # stream: branch with - in place of / (eg. stable)
544 # branch: branch (eg. stable)
545 project-type: 'multijob'
553 - '{project}-defaults'
554 - '{project}-baremetal-{stream}-defaults'
559 gs-pathname: '{gs-pathname}'
561 name: DEPLOY_SCENARIO
562 default: '{verify-scenario}'
563 description: "Scenario to deploy with."
567 use-build-blocker: true
572 - 'apex-.*-promote.*'
575 - description-setter:
576 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
578 name: 'Baremetal Deploy'
581 - name: 'apex-deploy-baremetal-{stream}'
582 node-parameters: true
583 current-parameters: true
584 predefined-parameters: |
586 GERRIT_BRANCH=$GERRIT_BRANCH
588 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
589 kill-phase-on: FAILURE
596 - name: 'functest-apex-baremetal-daily-{stream}'
597 node-parameters: true
598 current-parameters: false
599 predefined-parameters:
600 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
608 - name: 'yardstick-apex-baremetal-daily-{stream}'
609 node-parameters: true
610 current-parameters: false
611 predefined-parameters:
612 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
617 {% for stream in scenarios %}
620 name: 'apex-daily-{{ stream }}'
622 # Job template for daily build
624 # Required Variables:
625 # stream: branch with - in place of / (eg. stable)
626 # branch: branch (eg. stable)
627 project-type: 'multijob'
629 node: '{{ build_slave[stream] }}'
637 - '{project}-defaults'
638 - '{project}-baremetal-{{ stream }}-defaults'
641 branch: '{{ branch[stream] }}'
643 gs-pathname: '{{ gspathname[stream] }}'
649 - 'apex-{{ stream }}'
654 condition: SUCCESSFUL
656 - name: 'apex-build-{{ stream }}'
657 current-parameters: false
658 predefined-parameters: |
659 GERRIT_BRANCH=$GERRIT_BRANCH
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
668 name: 'Verify and upload ISO'
669 condition: SUCCESSFUL
671 - name: 'apex-verify-iso-{{ stream }}'
672 current-parameters: false
673 predefined-parameters: |
674 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
675 GERRIT_BRANCH=$GERRIT_BRANCH
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
684 name: Baremetal Deploy and Test Phase
685 condition: SUCCESSFUL
687 {% for scenario in scenarios[stream] %}
688 - name: 'apex-run-deploy-test-baremetal-{{ stream }}'
689 node-parameters: false
690 current-parameters: false
691 predefined-parameters: |
692 DEPLOY_SCENARIO={{scenario}}
702 name: 'apex-create-snapshot'
704 # Job template for clean
706 # Required Variables:
707 # stream: branch with - in place of / (eg. stable)
713 !include-raw-escape: ./apex-snapshot-create.sh
717 name: 'apex-upload-snapshot'
719 # Job template for clean
721 # Required Variables:
722 # stream: branch with - in place of / (eg. stable)
728 properties-content: ARTIFACT_TYPE=snapshot
729 - 'apex-upload-artifact'
733 name: 'apex-csit-promote-daily-{stream}'
735 # Job template for promoting CSIT Snapshots
737 # Required Variables:
738 # stream: branch with - in place of / (eg. stable)
739 # branch: branch (eg. stable)
740 node: '{virtual-slave}'
741 project-type: 'multijob'
752 gs-pathname: '{gs-pathname}'
756 use-build-blocker: true
765 - timed: '0 12 * * 0'
770 condition: SUCCESSFUL
772 - name: 'apex-build-{stream}'
773 current-parameters: false
774 predefined-parameters: |
775 GERRIT_BRANCH=$GERRIT_BRANCH
776 GERRIT_REFSPEC=$GERRIT_REFSPEC
777 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
778 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
779 node-parameters: false
780 kill-phase-on: FAILURE
785 condition: SUCCESSFUL
787 - name: 'apex-deploy-virtual-{stream}'
788 current-parameters: false
789 predefined-parameters: |
790 DEPLOY_SCENARIO=os-odl_l3-csit-noha
792 GERRIT_BRANCH=$GERRIT_BRANCH
793 GERRIT_REFSPEC=$GERRIT_REFSPEC
794 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
795 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
797 node-parameters: true
798 kill-phase-on: FAILURE
803 condition: SUCCESSFUL
805 - name: 'functest-apex-virtual-suite-{stream}'
806 current-parameters: false
807 predefined-parameters: |
808 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
809 FUNCTEST_SUITE_NAME=tempest_smoke_serial
810 GERRIT_BRANCH=$GERRIT_BRANCH
811 GERRIT_REFSPEC=$GERRIT_REFSPEC
812 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
813 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
814 node-parameters: true
815 kill-phase-on: FAILURE
819 name: create snapshot
820 condition: SUCCESSFUL
822 - name: 'apex-create-snapshot'
823 current-parameters: false
824 predefined-parameters: |
826 node-parameters: true
827 kill-phase-on: FAILURE
831 name: upload snapshot
832 condition: SUCCESSFUL
834 - name: 'apex-upload-snapshot'
835 current-parameters: false
836 predefined-parameters: |
838 node-parameters: true
839 kill-phase-on: FAILURE
845 name: 'apex-fdio-promote-daily-{stream}'
847 # Job template for promoting CSIT Snapshots
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'
864 gs-pathname: '{gs-pathname}'
868 use-build-blocker: true
879 condition: SUCCESSFUL
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
894 condition: SUCCESSFUL
896 - name: 'apex-deploy-virtual-{stream}'
897 current-parameters: false
898 predefined-parameters: |
899 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
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
906 node-parameters: true
907 kill-phase-on: FAILURE
911 name: create snapshot
912 condition: SUCCESSFUL
914 - name: 'apex-create-snapshot'
915 current-parameters: false
916 predefined-parameters: |
918 node-parameters: true
919 kill-phase-on: FAILURE
923 name: upload snapshot
924 condition: SUCCESSFUL
926 - name: 'apex-upload-snapshot'
927 current-parameters: false
928 predefined-parameters: |
930 node-parameters: true
931 kill-phase-on: FAILURE
935 ########################
937 ########################
944 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
946 name: ARTIFACT_VERSION
948 description: "Artifact version type"
950 name: BUILD_DIRECTORY
951 default: $WORKSPACE/.build
952 description: "Directory where the build artifact will be located upon the completion of the build."
954 name: CACHE_DIRECTORY
955 default: $HOME/opnfv/apex-cache{gs-pathname}
956 description: "Directory where the cache to be used during the build is located."
959 default: https://gerrit.opnfv.org/gerrit/$PROJECT
960 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
963 default: '{gs-pathname}'
964 description: "Version directory where opnfv artifacts are stored in gs repository"
967 default: $GS_BASE{gs-pathname}
968 description: "URL to Google Storage."
972 description: "Flag to know if we should promote/upload snapshot artifacts."
974 ########################
976 ########################
978 name: 'apex-unit-test'
981 !include-raw: ./apex-unit-test.sh
987 !include-raw: ./apex-build.sh
990 name: 'apex-workspace-cleanup'
993 !include-raw: ./apex-workspace-cleanup.sh
996 name: 'apex-iso-verify'
999 !include-raw: ./apex-iso-verify.sh
1003 name: 'apex-upload-artifact'
1006 !include-raw: ./apex-upload-artifact.sh
1009 name: 'apex-download-artifact'
1012 !include-raw: ./apex-download-artifact.sh
1018 !include-raw: ./apex-deploy.sh
1020 #######################
1022 ########################
1026 - timed: '0 3 1 1 7'
1030 - timed: '0 12 * * *'