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-{scenario}-baremetal-{scenario_stream}'
17 - 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
18 - 'apex-upload-snapshot'
19 - 'apex-create-snapshot'
20 # stream: branch with - in place of / (eg. stable-arno)
21 # branch: branch (eg. stable/arno)
26 build-slave: 'apex-build-master'
27 virtual-slave: 'apex-virtual-master'
28 baremetal-slave: 'apex-baremetal-master'
29 verify-scenario: 'os-odl-nofeature-ha'
31 scenario_stream: 'master'
34 branch: 'stable/danube'
35 gs-pathname: '/danube'
36 build-slave: 'apex-build-danube'
37 virtual-slave: 'apex-virtual-danube'
38 baremetal-slave: 'apex-baremetal-danube'
39 verify-scenario: 'os-odl_l3-nofeature-ha'
41 scenario_stream: 'danube'
45 {%- for stream in scenarios %}
46 {%- for scenario in scenarios[stream] %}
58 name: 'apex-verify-unit-tests-{stream}'
66 gs-pathname: '{gs-pathname}'
76 server-name: 'gerrit.opnfv.org'
78 - patchset-created-event:
79 exclude-drafts: 'false'
80 exclude-trivial-rebase: 'false'
81 exclude-no-code-change: 'true'
82 - draft-published-event
83 - comment-added-contains-event:
84 comment-contains-value: 'recheck'
85 - comment-added-contains-event:
86 comment-contains-value: 'reverify'
88 - project-compare-type: 'ANT'
89 project-pattern: 'apex'
91 - branch-compare-type: 'ANT'
92 branch-pattern: '**/{branch}'
95 pattern: 'apex/tests/**'
105 !include-raw-escape: ./apex-unit-test.sh
109 name: 'apex-verify-{stream}'
111 node: '{virtual-slave}'
115 project-type: 'multijob'
119 gs-pathname: '{gs-pathname}/dev'
124 name: ARTIFACT_VERSION
126 description: "Used for overriding the ARTIFACT_VERSION"
132 server-name: 'gerrit.opnfv.org'
134 - patchset-created-event:
135 exclude-drafts: 'false'
136 exclude-trivial-rebase: 'false'
137 exclude-no-code-change: 'true'
138 - draft-published-event
139 - comment-added-contains-event:
140 comment-contains-value: 'recheck'
141 - comment-added-contains-event:
142 comment-contains-value: 'reverify'
144 - project-compare-type: 'ANT'
145 project-pattern: 'apex'
147 - branch-compare-type: 'ANT'
148 branch-pattern: '**/{branch}'
164 use-build-blocker: true
174 - description-setter:
175 description: "Built on $NODE_NAME"
178 condition: SUCCESSFUL
180 - name: 'apex-verify-unit-tests-{stream}'
181 current-parameters: false
182 predefined-parameters: |
183 GERRIT_BRANCH=$GERRIT_BRANCH
184 GERRIT_REFSPEC=$GERRIT_REFSPEC
185 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
186 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
187 node-parameters: false
188 kill-phase-on: FAILURE
193 condition: SUCCESSFUL
195 - name: 'apex-build-{stream}'
196 current-parameters: false
197 predefined-parameters: |
198 ARTIFACT_VERSION=$ARTIFACT_VERSION
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: false
204 kill-phase-on: FAILURE
209 condition: SUCCESSFUL
211 - name: 'apex-deploy-virtual-{stream}'
212 current-parameters: false
213 predefined-parameters: |
214 ARTIFACT_VERSION=$ARTIFACT_VERSION
215 DEPLOY_SCENARIO={verify-scenario}
217 GERRIT_BRANCH=$GERRIT_BRANCH
218 GERRIT_REFSPEC=$GERRIT_REFSPEC
219 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
220 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
221 node-parameters: true
222 kill-phase-on: FAILURE
227 condition: SUCCESSFUL
229 - name: 'functest-apex-virtual-suite-{stream}'
230 current-parameters: false
231 predefined-parameters: |
232 DEPLOY_SCENARIO={verify-scenario}
233 FUNCTEST_SUITE_NAME=healthcheck
234 GERRIT_BRANCH=$GERRIT_BRANCH
235 GERRIT_REFSPEC=$GERRIT_REFSPEC
236 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
237 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
238 node-parameters: true
243 # Verify Scenario Gate
245 name: 'apex-verify-gate-{stream}'
247 node: '{virtual-slave}'
251 project-type: 'multijob'
255 gs-pathname: '{gs-pathname}/dev'
261 default: https://gerrit.opnfv.org/gerrit/$PROJECT
262 description: "Used for overriding the GIT URL coming from parameters macro."
264 name: ARTIFACT_VERSION
266 description: "Used for overriding the ARTIFACT_VERSION"
273 server-name: 'gerrit.opnfv.org'
275 - comment-added-contains-event:
276 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
278 - project-compare-type: 'ANT'
279 project-pattern: 'apex'
281 - branch-compare-type: 'ANT'
282 branch-pattern: '**/{branch}'
298 use-build-blocker: true
310 condition: SUCCESSFUL
312 - name: 'apex-deploy-virtual-{stream}'
313 current-parameters: false
314 predefined-parameters: |
315 ARTIFACT_VERSION=$ARTIFACT_VERSION
318 GERRIT_BRANCH=$GERRIT_BRANCH
319 GERRIT_REFSPEC=$GERRIT_REFSPEC
320 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
321 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
322 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
323 node-parameters: true
324 kill-phase-on: FAILURE
328 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo 'os-.*') > detected_scenario
330 properties-file: detected_scenario
333 condition: SUCCESSFUL
335 - name: 'functest-apex-virtual-suite-{stream}'
336 current-parameters: false
337 predefined-parameters: |
338 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
339 FUNCTEST_SUITE_NAME=healthcheck
340 GERRIT_BRANCH=$GERRIT_BRANCH
341 GERRIT_REFSPEC=$GERRIT_REFSPEC
342 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
343 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
344 node-parameters: true
350 name: 'apex-runner-cperf-{stream}'
353 project-type: 'multijob'
360 gs-pathname: '{gs-pathname}'
366 default: https://gerrit.opnfv.org/gerrit/$PROJECT
367 description: "Used for overriding the GIT URL coming from parameters macro."
375 use-build-blocker: false
385 - description-setter:
386 description: "Deployed on $NODE_NAME"
388 name: 'Baremetal Deploy'
391 - name: 'apex-deploy-baremetal-{stream}'
392 node-parameters: false
393 current-parameters: true
394 predefined-parameters: |
395 GERRIT_BRANCH=$GERRIT_BRANCH
398 DEPLOY_SCENARIO={verify-scenario}
399 kill-phase-on: FAILURE
404 condition: SUCCESSFUL
406 - name: 'cperf-apex-intel-pod2-daily-master'
407 node-parameters: true
408 current-parameters: false
409 predefined-parameters:
410 DEPLOY_SCENARIO={verify-scenario}
417 name: 'apex-build-{stream}'
419 # Job template for builds
421 # Required Variables:
422 # stream: branch with - in place of / (eg. stable)
423 # branch: branch (eg. stable)
424 node: '{build-slave}'
431 - '{project}-defaults'
436 gs-pathname: '{gs-pathname}'
449 max-per-node: {concurrent-builds}
453 use-build-blocker: true
456 - 'apex-verify-iso-{stream}'
461 properties-content: ARTIFACT_TYPE=rpm
462 - 'apex-upload-artifact'
466 name: 'apex-verify-iso-{stream}'
468 # Job template for builds
470 # Required Variables:
471 # stream: branch with - in place of / (eg. stable)
472 # branch: branch (eg. stable)
473 node: '{virtual-slave}'
484 gs-pathname: '{gs-pathname}'
487 default: https://gerrit.opnfv.org/gerrit/$PROJECT
488 description: "Used for overriding the GIT URL coming from parameters macro."
503 properties-content: ARTIFACT_TYPE=iso
504 - 'apex-upload-artifact'
508 name: 'apex-deploy-{platform}-{stream}'
510 node: 'apex-{platform}-{stream}'
525 - '{project}-{platform}-{stream}-defaults'
530 gs-pathname: '{gs-pathname}'
532 name: DEPLOY_SCENARIO
533 default: '{verify-scenario}'
534 description: "Scenario to deploy with."
538 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
543 use-build-blocker: true
557 - description-setter:
558 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
559 - 'apex-download-artifact'
561 - 'apex-workspace-cleanup'
564 # Baremetal Deploy and Test
566 name: 'apex-{scenario}-baremetal-{scenario_stream}'
568 project-type: 'multijob'
576 - '{project}-defaults'
577 - '{project}-baremetal-{scenario_stream}-defaults'
582 gs-pathname: '{gs-pathname}'
584 name: DEPLOY_SCENARIO
585 default: '{scenario}'
586 description: "Scenario to deploy with."
590 use-build-blocker: true
595 - 'apex-.*-promote.*'
597 - 'apex-.+-baremetal-.+'
603 - description-setter:
604 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
606 name: 'Baremetal Deploy'
607 condition: SUCCESSFUL
609 - name: 'apex-deploy-baremetal-{scenario_stream}'
610 node-parameters: true
611 current-parameters: true
612 predefined-parameters: |
614 GERRIT_BRANCH=$GERRIT_BRANCH
616 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
617 kill-phase-on: FAILURE
621 name: 'OPNFV Test Suite'
623 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
624 node-parameters: true
625 current-parameters: false
626 predefined-parameters:
627 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
635 !include-raw-escape: ./update-build-result.groovy
639 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
641 project-type: 'multijob'
646 - '{project}-defaults'
647 - '{project}-baremetal-{scenario_stream}-defaults'
652 gs-pathname: '{gs-pathname}'
654 name: DEPLOY_SCENARIO
655 default: '{scenario}'
656 description: "Scenario to deploy with."
660 use-build-blocker: true
665 - 'apex-.*-promote.*'
667 - 'apex-testsuite-.+-baremetal-.+'
673 - description-setter:
674 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
679 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
680 node-parameters: true
681 current-parameters: false
682 predefined-parameters:
683 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
691 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
692 node-parameters: true
693 current-parameters: false
694 predefined-parameters:
695 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
703 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
704 node-parameters: true
705 current-parameters: false
706 predefined-parameters:
707 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
709 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
716 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
717 node-parameters: true
718 current-parameters: false
719 predefined-parameters:
720 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
721 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
725 # Build status is always success due conditional plugin prefetching
726 # build status before multijob phases execute
727 # - conditional-step:
728 # condition-kind: current-status
729 # condition-worst: SUCCESS
730 # condtion-best: SUCCESS
731 # on-evaluation-failure: mark-unstable
733 # - shell: 'echo "Tests Passed"'
735 {% for stream in scenarios %}
738 name: 'apex-daily-{{ stream }}'
740 # Job template for daily build
742 # Required Variables:
743 # stream: branch with - in place of / (eg. stable)
744 # branch: branch (eg. stable)
745 project-type: 'multijob'
747 node: '{{ build_slave[stream] }}'
755 - '{project}-defaults'
756 - '{project}-baremetal-{{ stream }}-defaults'
759 branch: '{{ branch[stream] }}'
761 gs-pathname: '{{ gspathname[stream] }}'
767 - 'apex-{{ stream }}'
772 condition: SUCCESSFUL
774 - name: 'apex-build-{{ stream }}'
775 current-parameters: false
776 predefined-parameters: |
777 GERRIT_BRANCH=$GERRIT_BRANCH
779 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
780 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
781 node-parameters: true
782 kill-phase-on: FAILURE
786 name: 'Verify and upload ISO'
787 condition: SUCCESSFUL
789 - name: 'apex-verify-iso-{{ stream }}'
790 current-parameters: false
791 predefined-parameters: |
792 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
793 GERRIT_BRANCH=$GERRIT_BRANCH
795 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
796 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
797 node-parameters: true
798 kill-phase-on: FAILURE
802 name: Baremetal Deploy and Test Phase
803 condition: SUCCESSFUL
805 {% for scenario in scenarios[stream] %}
806 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
807 node-parameters: false
808 current-parameters: false
809 predefined-parameters: |
819 name: 'apex-create-snapshot'
821 # Job template for clean
823 # Required Variables:
824 # stream: branch with - in place of / (eg. stable)
830 !include-raw-escape: ./apex-snapshot-create.sh
834 name: 'apex-upload-snapshot'
836 # Job template for clean
838 # Required Variables:
839 # stream: branch with - in place of / (eg. stable)
845 properties-content: ARTIFACT_TYPE=snapshot
846 - 'apex-upload-artifact'
850 name: 'apex-csit-promote-daily-{stream}'
852 # Job template for promoting CSIT Snapshots
854 # Required Variables:
855 # stream: branch with - in place of / (eg. stable)
856 # branch: branch (eg. stable)
857 node: '{virtual-slave}'
858 project-type: 'multijob'
869 gs-pathname: '{gs-pathname}'
873 use-build-blocker: true
882 - timed: '0 12 * * 0'
887 condition: SUCCESSFUL
889 - name: 'apex-build-{stream}'
890 current-parameters: false
891 predefined-parameters: |
892 GERRIT_BRANCH=$GERRIT_BRANCH
893 GERRIT_REFSPEC=$GERRIT_REFSPEC
894 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
895 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
896 node-parameters: false
897 kill-phase-on: FAILURE
902 condition: SUCCESSFUL
904 - name: 'apex-deploy-virtual-{stream}'
905 current-parameters: false
906 predefined-parameters: |
907 DEPLOY_SCENARIO=os-odl_l3-csit-noha
909 GERRIT_BRANCH=$GERRIT_BRANCH
910 GERRIT_REFSPEC=$GERRIT_REFSPEC
911 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
912 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
914 node-parameters: true
915 kill-phase-on: FAILURE
920 condition: SUCCESSFUL
922 - name: 'functest-apex-virtual-suite-{stream}'
923 current-parameters: false
924 predefined-parameters: |
925 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
926 FUNCTEST_SUITE_NAME=tempest_smoke_serial
927 GERRIT_BRANCH=$GERRIT_BRANCH
928 GERRIT_REFSPEC=$GERRIT_REFSPEC
929 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
930 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
931 node-parameters: true
932 kill-phase-on: FAILURE
936 name: create snapshot
937 condition: SUCCESSFUL
939 - name: 'apex-create-snapshot'
940 current-parameters: false
941 predefined-parameters: |
943 node-parameters: true
944 kill-phase-on: FAILURE
948 name: upload snapshot
949 condition: SUCCESSFUL
951 - name: 'apex-upload-snapshot'
952 current-parameters: false
953 predefined-parameters: |
955 node-parameters: true
956 kill-phase-on: FAILURE
962 name: 'apex-fdio-promote-daily-{stream}'
964 # Job template for promoting CSIT Snapshots
966 # Required Variables:
967 # stream: branch with - in place of / (eg. stable)
968 # branch: branch (eg. stable)
969 node: '{virtual-slave}'
970 project-type: 'multijob'
981 gs-pathname: '{gs-pathname}'
985 use-build-blocker: true
996 condition: SUCCESSFUL
998 - name: 'apex-build-{stream}'
999 current-parameters: false
1000 predefined-parameters: |
1001 GERRIT_BRANCH=$GERRIT_BRANCH
1002 GERRIT_REFSPEC=$GERRIT_REFSPEC
1003 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1004 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1005 node-parameters: false
1006 kill-phase-on: FAILURE
1010 name: deploy-virtual
1011 condition: SUCCESSFUL
1013 - name: 'apex-deploy-virtual-{stream}'
1014 current-parameters: false
1015 predefined-parameters: |
1016 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
1018 GERRIT_BRANCH=$GERRIT_BRANCH
1019 GERRIT_REFSPEC=$GERRIT_REFSPEC
1020 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1021 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1023 node-parameters: true
1024 kill-phase-on: FAILURE
1028 name: create snapshot
1029 condition: SUCCESSFUL
1031 - name: 'apex-create-snapshot'
1032 current-parameters: false
1033 predefined-parameters: |
1035 node-parameters: true
1036 kill-phase-on: FAILURE
1040 name: upload snapshot
1041 condition: SUCCESSFUL
1043 - name: 'apex-upload-snapshot'
1044 current-parameters: false
1045 predefined-parameters: |
1047 node-parameters: true
1048 kill-phase-on: FAILURE
1052 ########################
1054 ########################
1056 name: apex-parameter
1061 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1063 name: ARTIFACT_VERSION
1065 description: "Artifact version type"
1067 name: BUILD_DIRECTORY
1068 default: $WORKSPACE/.build
1069 description: "Directory where the build artifact will be located upon the completion of the build."
1071 name: CACHE_DIRECTORY
1072 default: $HOME/opnfv/apex-cache{gs-pathname}
1073 description: "Directory where the cache to be used during the build is located."
1076 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1077 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1080 default: '{gs-pathname}'
1081 description: "Version directory where opnfv artifacts are stored in gs repository"
1084 default: $GS_BASE{gs-pathname}
1085 description: "URL to Google Storage."
1089 description: "Flag to know if we should promote/upload snapshot artifacts."
1091 ########################
1093 ########################
1095 name: 'apex-unit-test'
1098 !include-raw: ./apex-unit-test.sh
1104 !include-raw: ./apex-build.sh
1107 name: 'apex-workspace-cleanup'
1110 !include-raw: ./apex-workspace-cleanup.sh
1113 name: 'apex-iso-verify'
1116 !include-raw: ./apex-iso-verify.sh
1120 name: 'apex-upload-artifact'
1123 !include-raw: ./apex-upload-artifact.sh
1126 name: 'apex-download-artifact'
1129 !include-raw: ./apex-download-artifact.sh
1135 !include-raw: ./apex-deploy.sh
1137 #######################
1139 ########################
1143 - timed: '0 12 * * *'
1147 - timed: '0 3 1 1 7'