14 branch: 'stable/{stream}'
15 gs-pathname: '/{stream}'
21 slave-label: 'doctor-apex-verify'
23 slave-label: 'doctor-fuel-verify'
25 # slave-label: 'ool-virtual3'
30 slave-label: 'doctor-{installer}-verify'
32 slave-label: 'doctor-{installer}-{phase}-verify'
40 auto-trigger-name: 'doctor-verify'
43 auto-trigger-name: 'doctor-verify'
48 phase: 'build-aarch64'
51 - 'doctor-verify-{stream}'
52 - 'doctor-verify-unit-test-{stream}'
53 - 'doctor-{task}-{inspector}-{stream}'
54 - 'doctor-{task}-{installer}-{inspector}-{phase}-{stream}'
57 name: 'doctor-verify-{stream}'
59 disabled: '{obj:disabled}'
61 project-type: 'multijob'
67 - 'opnfv-build-ubuntu-defaults'
74 server-name: 'gerrit.opnfv.org'
76 - patchset-created-event:
77 exclude-drafts: 'false'
78 exclude-trivial-rebase: 'false'
79 exclude-no-code-change: 'false'
80 - draft-published-event
81 - comment-added-contains-event:
82 comment-contains-value: 'recheck'
83 - comment-added-contains-event:
84 comment-contains-value: 'reverify'
86 - project-compare-type: 'ANT'
87 project-pattern: '{project}'
89 - branch-compare-type: 'ANT'
90 branch-pattern: '**/{branch}'
93 pattern: 'doctor_tests/**'
98 # we do nothing here as the main stuff will be done
100 echo "Triggering phase jobs!"
102 name: 'doctor-build-and-unittest'
103 execution-type: PARALLEL
105 - name: 'doctor-verify-unit-test-{stream}'
106 current-parameters: false
107 predefined-parameters: |
108 GERRIT_BRANCH=$GERRIT_BRANCH
109 GERRIT_REFSPEC=$GERRIT_REFSPEC
110 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
111 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
113 node-parameters: false
114 kill-phase-on: FAILURE
118 name: 'doctor-verify-unit-test-{stream}'
119 disabled: '{obj:disabled}'
128 - 'opnfv-build-ubuntu-defaults'
132 - 'doctor-verify-unit-test-builders-macro'
134 - 'doctor-verify-unit-test-publishers-macro'
138 name: 'doctor-{task}-{inspector}-{stream}'
140 disabled: '{obj:disabled}'
142 project-type: 'multijob'
148 - 'opnfv-build-ubuntu-defaults'
151 default: /home/jenkins/openstack.creds
152 description: 'OpenStack credentials'
155 default: '{docker-tag}'
156 description: 'Tag to pull docker image'
158 name: CLEAN_DOCKER_IMAGES
160 description: 'Remove downloaded docker images (opnfv/functest:*)'
162 name: DEPLOY_SCENARIO
163 default: 'os-nosdn-nofeature-ha'
164 description: 'Scenario to deploy and test'
165 # functest-suite-parameter
170 name: FUNCTEST_SUITE_NAME
171 default: 'doctor-notification'
173 name: TESTCASE_OPTIONS
174 # yamllint disable rule:line-length
175 default: '-e INSPECTOR_TYPE={inspector} -e PYTHON_ENABLE={is-python} -v $WORKSPACE:/home/opnfv/repos/doctor'
176 # yamllint enable rule:line-length
177 description: 'Addtional parameters specific to test case(s)'
181 default: '{gs-pathname}'
182 # yamllint disable rule:line-length
183 description: "Version directory where the opnfv documents will be stored in gs repository"
184 # yamllint enable rule:line-length
186 name: FUNCTEST_REPO_DIR
187 default: "/home/opnfv/repos/functest"
188 description: "Directory where the Functest repository is cloned"
190 name: PUSH_RESULTS_TO_DB
192 description: "Push the results of all the tests to the resultDB"
196 description: "Show debug output information"
202 - '{auto-trigger-name}':
205 files: 'doctor_tests/**'
210 # we do nothing here as the main stuff will be done
212 echo "Triggering phase jobs!"
214 name: 'doctor-verify-apex-inspector'
215 execution-type: PARALLEL
217 - name: 'doctor-{task}-apex-{inspector}-build-x86_64-{stream}'
218 current-parameters: false
219 predefined-parameters: |
220 GERRIT_BRANCH=$GERRIT_BRANCH
221 GERRIT_REFSPEC=$GERRIT_REFSPEC
222 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
223 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
225 node-parameters: false
226 kill-phase-on: FAILURE
229 name: 'doctor-verify-fuel-inspector'
230 execution-type: PARALLEL
232 - name: 'doctor-{task}-fuel-{inspector}-build-x86_64-{stream}'
233 current-parameters: false
234 predefined-parameters: |
235 GERRIT_BRANCH=$GERRIT_BRANCH
236 GERRIT_REFSPEC=$GERRIT_REFSPEC
237 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
238 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
240 node-parameters: false
241 kill-phase-on: FAILURE
244 name: 'doctor-verify-fuel-inspector'
245 execution-type: PARALLEL
247 - name: 'doctor-{task}-fuel-{inspector}-build-aarch64-{stream}'
248 current-parameters: false
249 predefined-parameters: |
250 GERRIT_BRANCH=$GERRIT_BRANCH
251 GERRIT_REFSPEC=$GERRIT_REFSPEC
252 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
253 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
255 node-parameters: false
256 kill-phase-on: FAILURE
260 name: 'doctor-{task}-{installer}-{inspector}-{phase}-{stream}'
261 disabled: '{obj:disabled}'
262 node: '{slave-label}'
271 - '{installer}-defaults'
272 - '{slave-label}-defaults'
276 - 'doctor-verify-installer-inspector-builders-macro'
278 - 'doctor-verify-publishers-macro'
279 # -------------------------------
281 # -------------------------------
284 name: 'doctor-verify-unit-test-builders-macro'
286 - shell: "[ -e tests/run.sh ] && bash -n ./tests/run.sh"
288 name: 'doctor-verify-installer-inspector-builders-macro'
290 - 'clean-workspace-log'
291 # yamllint disable rule:line-length
293 # NOTE: Create symbolic link, so that we can archive file outside
295 # NOTE: We are printing all logs under 'tests/' during test run,
296 # so this symbolic link should not be in 'tests/'. Otherwise,
297 # we'll have the same log twice in jenkins console log.
298 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
299 # NOTE: Get functest script in $WORKSPACE. This functest script is
300 # needed to perform VM image download in set-functest-env.sh
301 # from E release cycle.
303 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
304 - 'functest-suite-builder'
306 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
307 # NOTE: checking the test result, as the previous job could return
308 # 0 regardless the result of doctor test scenario.
309 grep -e 'doctor test successfully' $functest_log || exit 1
310 # yamllint enable rule:line-length
312 # -------------------------------
314 # -------------------------------
316 name: 'doctor-verify-publishers-macro'
319 artifacts: 'doctor_tests/*.log'
321 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
322 - email-jenkins-admins-on-failure
324 name: 'doctor-verify-unit-test-publishers-macro'
326 - email-jenkins-admins-on-failure
328 #####################################
330 #####################################
332 name: 'doctor-verify'
335 server-name: 'gerrit.opnfv.org'
337 - patchset-created-event:
338 exclude-drafts: 'false'
339 exclude-trivial-rebase: 'false'
340 exclude-no-code-change: 'false'
341 - draft-published-event
342 - comment-added-contains-event:
343 comment-contains-value: 'recheck'
344 - comment-added-contains-event:
345 comment-contains-value: 'reverify'
347 - project-compare-type: 'ANT'
348 project-pattern: '{project}'
350 - branch-compare-type: 'ANT'
351 branch-pattern: '**/{branch}'