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}'
296 use-build-blocker: true
308 condition: SUCCESSFUL
310 - name: 'apex-deploy-virtual-{stream}'
311 current-parameters: false
312 predefined-parameters: |
313 ARTIFACT_VERSION=$ARTIFACT_VERSION
316 GERRIT_BRANCH=$GERRIT_BRANCH
317 GERRIT_REFSPEC=$GERRIT_REFSPEC
318 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
319 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
320 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
321 node-parameters: true
322 kill-phase-on: FAILURE
326 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo 'os-.*') > detected_scenario
328 properties-file: detected_scenario
331 condition: SUCCESSFUL
333 - name: 'functest-apex-virtual-suite-{stream}'
334 current-parameters: false
335 predefined-parameters: |
336 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
337 FUNCTEST_SUITE_NAME=healthcheck
338 GERRIT_BRANCH=$GERRIT_BRANCH
339 GERRIT_REFSPEC=$GERRIT_REFSPEC
340 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
341 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
342 node-parameters: true
348 name: 'apex-runner-cperf-{stream}'
351 project-type: 'multijob'
358 gs-pathname: '{gs-pathname}'
364 default: https://gerrit.opnfv.org/gerrit/$PROJECT
365 description: "Used for overriding the GIT URL coming from parameters macro."
373 use-build-blocker: false
383 - description-setter:
384 description: "Deployed on $NODE_NAME"
386 name: 'Baremetal Deploy'
389 - name: 'apex-deploy-baremetal-{stream}'
390 node-parameters: false
391 current-parameters: true
392 predefined-parameters: |
393 GERRIT_BRANCH=$GERRIT_BRANCH
396 DEPLOY_SCENARIO={verify-scenario}
397 kill-phase-on: FAILURE
402 condition: SUCCESSFUL
404 - name: 'cperf-apex-intel-pod2-daily-master'
405 node-parameters: true
406 current-parameters: false
407 predefined-parameters:
408 DEPLOY_SCENARIO={verify-scenario}
415 name: 'apex-build-{stream}'
417 # Job template for builds
419 # Required Variables:
420 # stream: branch with - in place of / (eg. stable)
421 # branch: branch (eg. stable)
422 node: '{build-slave}'
429 - '{project}-defaults'
434 gs-pathname: '{gs-pathname}'
447 max-per-node: {concurrent-builds}
451 use-build-blocker: true
454 - 'apex-verify-iso-{stream}'
459 properties-content: ARTIFACT_TYPE=rpm
460 - 'apex-upload-artifact'
464 name: 'apex-verify-iso-{stream}'
466 # Job template for builds
468 # Required Variables:
469 # stream: branch with - in place of / (eg. stable)
470 # branch: branch (eg. stable)
471 node: '{virtual-slave}'
482 gs-pathname: '{gs-pathname}'
485 default: https://gerrit.opnfv.org/gerrit/$PROJECT
486 description: "Used for overriding the GIT URL coming from parameters macro."
501 properties-content: ARTIFACT_TYPE=iso
502 - 'apex-upload-artifact'
506 name: 'apex-deploy-{platform}-{stream}'
508 node: 'apex-{platform}-{stream}'
523 - '{project}-{platform}-{stream}-defaults'
528 gs-pathname: '{gs-pathname}'
530 name: DEPLOY_SCENARIO
531 default: '{verify-scenario}'
532 description: "Scenario to deploy with."
536 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
541 use-build-blocker: true
555 - description-setter:
556 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
557 - 'apex-download-artifact'
559 - 'apex-workspace-cleanup'
562 # Baremetal Deploy and Test
564 name: 'apex-{scenario}-baremetal-{scenario_stream}'
566 project-type: 'multijob'
574 - '{project}-defaults'
575 - '{project}-baremetal-{scenario_stream}-defaults'
580 gs-pathname: '{gs-pathname}'
582 name: DEPLOY_SCENARIO
583 default: '{scenario}'
584 description: "Scenario to deploy with."
588 use-build-blocker: true
593 - 'apex-.*-promote.*'
595 - 'apex-.+-baremetal-.+'
601 - description-setter:
602 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
604 name: 'Baremetal Deploy'
605 condition: SUCCESSFUL
607 - name: 'apex-deploy-baremetal-{scenario_stream}'
608 node-parameters: true
609 current-parameters: true
610 predefined-parameters: |
612 GERRIT_BRANCH=$GERRIT_BRANCH
614 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
615 kill-phase-on: FAILURE
619 name: 'OPNFV Test Suite'
621 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
622 node-parameters: true
623 current-parameters: false
624 predefined-parameters:
625 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
633 !include-raw-escape: ./update-build-result.groovy
637 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
639 project-type: 'multijob'
644 - '{project}-defaults'
645 - '{project}-baremetal-{scenario_stream}-defaults'
650 gs-pathname: '{gs-pathname}'
652 name: DEPLOY_SCENARIO
653 default: '{scenario}'
654 description: "Scenario to deploy with."
658 use-build-blocker: true
663 - 'apex-.*-promote.*'
665 - 'apex-testsuite-.+-baremetal-.+'
671 - description-setter:
672 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
677 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
678 node-parameters: true
679 current-parameters: false
680 predefined-parameters:
681 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
689 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
690 node-parameters: true
691 current-parameters: false
692 predefined-parameters:
693 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
701 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
702 node-parameters: true
703 current-parameters: false
704 predefined-parameters:
705 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
707 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
714 # - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
715 # node-parameters: true
716 # current-parameters: false
717 # predefined-parameters:
718 # DEPLOY_SCENARIO=$DEPLOY_SCENARIO
719 # kill-phase-on: NEVER
720 # abort-all-job: false
721 # git-revision: false
722 # Build status is always success due conditional plugin prefetching
723 # build status before multijob phases execute
724 # - conditional-step:
725 # condition-kind: current-status
726 # condition-worst: SUCCESS
727 # condtion-best: SUCCESS
728 # on-evaluation-failure: mark-unstable
730 # - shell: 'echo "Tests Passed"'
732 {% for stream in scenarios %}
735 name: 'apex-daily-{{ stream }}'
737 # Job template for daily build
739 # Required Variables:
740 # stream: branch with - in place of / (eg. stable)
741 # branch: branch (eg. stable)
742 project-type: 'multijob'
744 node: '{{ build_slave[stream] }}'
752 - '{project}-defaults'
753 - '{project}-baremetal-{{ stream }}-defaults'
756 branch: '{{ branch[stream] }}'
758 gs-pathname: '{{ gspathname[stream] }}'
764 - 'apex-{{ stream }}'
769 condition: SUCCESSFUL
771 - name: 'apex-build-{{ stream }}'
772 current-parameters: false
773 predefined-parameters: |
774 GERRIT_BRANCH=$GERRIT_BRANCH
776 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
777 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
778 node-parameters: true
779 kill-phase-on: FAILURE
783 name: 'Verify and upload ISO'
784 condition: SUCCESSFUL
786 - name: 'apex-verify-iso-{{ stream }}'
787 current-parameters: false
788 predefined-parameters: |
789 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
790 GERRIT_BRANCH=$GERRIT_BRANCH
792 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
793 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
794 node-parameters: true
795 kill-phase-on: FAILURE
799 name: Baremetal Deploy and Test Phase
800 condition: SUCCESSFUL
802 {% for scenario in scenarios[stream] %}
803 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
804 node-parameters: false
805 current-parameters: false
806 predefined-parameters: |
816 name: 'apex-create-snapshot'
818 # Job template for clean
820 # Required Variables:
821 # stream: branch with - in place of / (eg. stable)
827 !include-raw-escape: ./apex-snapshot-create.sh
831 name: 'apex-upload-snapshot'
833 # Job template for clean
835 # Required Variables:
836 # stream: branch with - in place of / (eg. stable)
842 properties-content: ARTIFACT_TYPE=snapshot
843 - 'apex-upload-artifact'
847 name: 'apex-csit-promote-daily-{stream}'
849 # Job template for promoting CSIT Snapshots
851 # Required Variables:
852 # stream: branch with - in place of / (eg. stable)
853 # branch: branch (eg. stable)
854 node: '{virtual-slave}'
855 project-type: 'multijob'
866 gs-pathname: '{gs-pathname}'
870 use-build-blocker: true
879 - timed: '0 12 * * 0'
884 condition: SUCCESSFUL
886 - name: 'apex-build-{stream}'
887 current-parameters: false
888 predefined-parameters: |
889 GERRIT_BRANCH=$GERRIT_BRANCH
890 GERRIT_REFSPEC=$GERRIT_REFSPEC
891 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
892 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
893 node-parameters: false
894 kill-phase-on: FAILURE
899 condition: SUCCESSFUL
901 - name: 'apex-deploy-virtual-{stream}'
902 current-parameters: false
903 predefined-parameters: |
904 DEPLOY_SCENARIO=os-odl_l3-csit-noha
906 GERRIT_BRANCH=$GERRIT_BRANCH
907 GERRIT_REFSPEC=$GERRIT_REFSPEC
908 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
909 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
911 node-parameters: true
912 kill-phase-on: FAILURE
917 condition: SUCCESSFUL
919 - name: 'functest-apex-virtual-suite-{stream}'
920 current-parameters: false
921 predefined-parameters: |
922 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
923 FUNCTEST_SUITE_NAME=tempest_smoke_serial
924 GERRIT_BRANCH=$GERRIT_BRANCH
925 GERRIT_REFSPEC=$GERRIT_REFSPEC
926 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
927 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
928 node-parameters: true
929 kill-phase-on: FAILURE
933 name: create snapshot
934 condition: SUCCESSFUL
936 - name: 'apex-create-snapshot'
937 current-parameters: false
938 predefined-parameters: |
940 node-parameters: true
941 kill-phase-on: FAILURE
945 name: upload snapshot
946 condition: SUCCESSFUL
948 - name: 'apex-upload-snapshot'
949 current-parameters: false
950 predefined-parameters: |
952 node-parameters: true
953 kill-phase-on: FAILURE
959 name: 'apex-fdio-promote-daily-{stream}'
961 # Job template for promoting CSIT Snapshots
963 # Required Variables:
964 # stream: branch with - in place of / (eg. stable)
965 # branch: branch (eg. stable)
966 node: '{virtual-slave}'
967 project-type: 'multijob'
978 gs-pathname: '{gs-pathname}'
982 use-build-blocker: true
993 condition: SUCCESSFUL
995 - name: 'apex-build-{stream}'
996 current-parameters: false
997 predefined-parameters: |
998 GERRIT_BRANCH=$GERRIT_BRANCH
999 GERRIT_REFSPEC=$GERRIT_REFSPEC
1000 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1001 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1002 node-parameters: false
1003 kill-phase-on: FAILURE
1007 name: deploy-virtual
1008 condition: SUCCESSFUL
1010 - name: 'apex-deploy-virtual-{stream}'
1011 current-parameters: false
1012 predefined-parameters: |
1013 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
1015 GERRIT_BRANCH=$GERRIT_BRANCH
1016 GERRIT_REFSPEC=$GERRIT_REFSPEC
1017 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1018 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1020 node-parameters: true
1021 kill-phase-on: FAILURE
1025 name: create snapshot
1026 condition: SUCCESSFUL
1028 - name: 'apex-create-snapshot'
1029 current-parameters: false
1030 predefined-parameters: |
1032 node-parameters: true
1033 kill-phase-on: FAILURE
1037 name: upload snapshot
1038 condition: SUCCESSFUL
1040 - name: 'apex-upload-snapshot'
1041 current-parameters: false
1042 predefined-parameters: |
1044 node-parameters: true
1045 kill-phase-on: FAILURE
1049 ########################
1051 ########################
1053 name: apex-parameter
1058 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1060 name: ARTIFACT_VERSION
1062 description: "Artifact version type"
1064 name: BUILD_DIRECTORY
1065 default: $WORKSPACE/.build
1066 description: "Directory where the build artifact will be located upon the completion of the build."
1068 name: CACHE_DIRECTORY
1069 default: $HOME/opnfv/apex-cache{gs-pathname}
1070 description: "Directory where the cache to be used during the build is located."
1073 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1074 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1077 default: '{gs-pathname}'
1078 description: "Version directory where opnfv artifacts are stored in gs repository"
1081 default: $GS_BASE{gs-pathname}
1082 description: "URL to Google Storage."
1086 description: "Flag to know if we should promote/upload snapshot artifacts."
1088 ########################
1090 ########################
1092 name: 'apex-unit-test'
1095 !include-raw: ./apex-unit-test.sh
1101 !include-raw: ./apex-build.sh
1104 name: 'apex-workspace-cleanup'
1107 !include-raw: ./apex-workspace-cleanup.sh
1110 name: 'apex-iso-verify'
1113 !include-raw: ./apex-iso-verify.sh
1117 name: 'apex-upload-artifact'
1120 !include-raw: ./apex-upload-artifact.sh
1123 name: 'apex-download-artifact'
1126 !include-raw: ./apex-download-artifact.sh
1132 !include-raw: ./apex-deploy.sh
1134 #######################
1136 ########################
1140 - timed: '0 12 * * *'
1144 - timed: '0 3 1 1 7'