14 branch: 'stable/{stream}'
15 gs-pathname: '/{stream}'
19 # feature projects' tests are not triggered by functest
20 # doctor verify Pods need to deploy with these scenario
23 scenario: 'os-nosdn-kvm-ha'
25 scenario: 'os-nosdn-ovs-ha'
27 scenario: 'os-nosdn-ovs_dpdk-noha'
44 - 'doctor-verify-{inspector}-{stream}'
45 - 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
48 name: 'doctor-verify-{inspector}-{stream}'
49 disabled: '{obj:disabled}'
50 project-type: 'multijob'
55 - 'doctor-slave-parameter'
62 files: 'doctor_tests/**'
67 # we do nothing here as the main stuff will be done
69 echo "Triggering phase jobs!"
72 execution-type: PARALLEL
74 - name: 'doctor-verify-apex-{inspector}-x86_64-{stream}'
75 predefined-parameters: |
77 GERRIT_BRANCH=$GERRIT_BRANCH
78 GERRIT_REFSPEC=$GERRIT_REFSPEC
79 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
80 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
81 kill-phase-on: FAILURE
83 - name: 'doctor-verify-fuel-{inspector}-x86_64-{stream}'
84 predefined-parameters: |
86 GERRIT_BRANCH=$GERRIT_BRANCH
87 GERRIT_REFSPEC=$GERRIT_REFSPEC
88 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
89 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
90 kill-phase-on: FAILURE
92 - name: 'doctor-verify-fuel-{inspector}-aarch64-{stream}'
93 predefined-parameters: |
94 GERRIT_BRANCH=$GERRIT_BRANCH
95 GERRIT_REFSPEC=$GERRIT_REFSPEC
96 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
97 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
98 kill-phase-on: FAILURE
100 - name: 'doctor-verify-daisy-{inspector}-x86_64-{stream}'
101 predefined-parameters: |
103 GERRIT_BRANCH=$GERRIT_BRANCH
104 GERRIT_REFSPEC=$GERRIT_REFSPEC
105 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
106 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
107 kill-phase-on: FAILURE
111 name: 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
112 disabled: '{obj:disabled}'
113 node: 'doctor-{installer}-{arch}'
122 - '{installer}-defaults'
123 - 'doctor-slave-parameter'
125 - 'doctor-functest-parameter'
129 - 'doctor-verify-installer-inspector-builders-macro'
131 - 'doctor-verify-publishers-macro'
134 # -------------------------------
136 # -------------------------------
138 name: 'doctor-parameter'
142 default: /home/jenkins/openstack.creds
143 description: 'OpenStack credentials'
146 default: '{docker-tag}'
147 description: 'Tag to pull docker image'
149 name: CLEAN_DOCKER_IMAGES
151 description: 'Remove downloaded docker images (opnfv/functest:*)'
153 name: DEPLOY_SCENARIO
154 default: '{scenario}'
155 description: 'Scenario to deploy and test'
158 name: 'doctor-functest-parameter'
160 # functest-suite-parameter
165 name: FUNCTEST_SUITE_NAME
166 default: 'doctor-notification'
168 name: TESTCASE_OPTIONS
169 # yamllint disable rule:line-length
170 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
171 # yamllint enable rule:line-length
172 description: 'Addtional parameters specific to test case(s)'
176 default: '{gs-pathname}'
177 # yamllint disable rule:line-length
178 description: "Version directory where the opnfv documents will be stored in gs repository"
179 # yamllint enable rule:line-length
181 name: FUNCTEST_REPO_DIR
182 default: "/home/opnfv/repos/functest"
183 description: "Directory where the Functest repository is cloned"
185 name: PUSH_RESULTS_TO_DB
187 description: "Push the results of all the tests to the resultDB"
191 description: "Show debug output information"
192 # -------------------------------
194 # -------------------------------
197 name: 'doctor-verify-installer-inspector-builders-macro'
199 - 'clean-workspace-log'
200 # yamllint disable rule:line-length
202 # NOTE: Create symbolic link, so that we can archive file outside
204 # NOTE: We are printing all logs under 'tests/' during test run,
205 # so this symbolic link should not be in 'tests/'. Otherwise,
206 # we'll have the same log twice in jenkins console log.
207 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
208 # NOTE: Get functest script in $WORKSPACE. This functest script is
209 # needed to perform VM image download in set-functest-env.sh
210 # from E release cycle.
212 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
213 - 'functest-suite-builder'
215 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
216 # NOTE: checking the test result, as the previous job could return
217 # 0 regardless the result of doctor test scenario.
218 grep -e 'doctor test successfully' $functest_log || exit 1
219 # yamllint enable rule:line-length
221 # -------------------------------
223 # -------------------------------
225 name: 'doctor-verify-publishers-macro'
228 artifacts: 'doctor_tests/*.log'
230 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
231 - email-jenkins-admins-on-failure
234 #####################################
236 #####################################
238 name: 'doctor-verify'
241 server-name: 'gerrit.opnfv.org'
243 - patchset-created-event:
244 exclude-drafts: 'false'
245 exclude-trivial-rebase: 'false'
246 exclude-no-code-change: 'false'
247 - draft-published-event
248 - comment-added-contains-event:
249 comment-contains-value: 'recheck'
250 - comment-added-contains-event:
251 comment-contains-value: 'reverify'
253 - project-compare-type: 'ANT'
254 project-pattern: '{project}'
256 - branch-compare-type: 'ANT'
257 branch-pattern: '**/{branch}'