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'
44 phase: 'build-aarch64'
47 - 'doctor-verify-{stream}'
48 - 'doctor-verify-unit-test-{stream}'
49 - 'doctor-{task}-{inspector}-{stream}'
50 - 'doctor-{task}-{installer}-{inspector}-{phase}-{stream}'
53 name: 'doctor-verify-{stream}'
55 disabled: '{obj:disabled}'
57 project-type: 'multijob'
63 - 'opnfv-build-ubuntu-defaults'
72 files: 'doctor_tests/**'
78 # we do nothing here as the main stuff will be done
80 echo "Triggering phase jobs!"
82 name: 'doctor-build-and-unittest'
83 execution-type: PARALLEL
85 - name: 'doctor-verify-unit-test-{stream}'
86 current-parameters: false
87 predefined-parameters: |
88 GERRIT_BRANCH=$GERRIT_BRANCH
89 GERRIT_REFSPEC=$GERRIT_REFSPEC
90 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
91 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
93 node-parameters: false
94 kill-phase-on: FAILURE
98 name: 'doctor-verify-unit-test-{stream}'
99 disabled: '{obj:disabled}'
108 - 'opnfv-build-ubuntu-defaults'
112 - 'doctor-verify-unit-test-builders-macro'
114 - 'doctor-verify-unit-test-publishers-macro'
117 name: 'doctor-{task}-{inspector}-{stream}'
119 disabled: '{obj:disabled}'
121 project-type: 'multijob'
127 - 'opnfv-build-ubuntu-defaults'
130 default: /home/jenkins/openstack.creds
131 description: 'OpenStack credentials'
134 default: '{docker-tag}'
135 description: 'Tag to pull docker image'
137 name: CLEAN_DOCKER_IMAGES
139 description: 'Remove downloaded docker images (opnfv/functest:*)'
141 name: DEPLOY_SCENARIO
142 default: 'os-nosdn-nofeature-ha'
143 description: 'Scenario to deploy and test'
144 # functest-suite-parameter
149 name: FUNCTEST_SUITE_NAME
150 default: 'doctor-notification'
152 name: TESTCASE_OPTIONS
153 # yamllint disable rule:line-length
154 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
155 # yamllint enable rule:line-length
156 description: 'Addtional parameters specific to test case(s)'
160 default: '{gs-pathname}'
161 # yamllint disable rule:line-length
162 description: "Version directory where the opnfv documents will be stored in gs repository"
163 # yamllint enable rule:line-length
165 name: FUNCTEST_REPO_DIR
166 default: "/home/opnfv/repos/functest"
167 description: "Directory where the Functest repository is cloned"
169 name: PUSH_RESULTS_TO_DB
171 description: "Push the results of all the tests to the resultDB"
175 description: "Show debug output information"
181 - '{auto-trigger-name}':
184 files: 'doctor_tests/**'
190 # we do nothing here as the main stuff will be done
192 echo "Triggering phase jobs!"
194 name: 'doctor-verify-apex-inspector'
195 execution-type: PARALLEL
197 - name: 'doctor-{task}-apex-{inspector}-build-x86_64-{stream}'
198 current-parameters: false
199 predefined-parameters: |
200 GERRIT_BRANCH=$GERRIT_BRANCH
201 GERRIT_REFSPEC=$GERRIT_REFSPEC
202 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
203 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
205 node-parameters: false
206 kill-phase-on: FAILURE
209 name: 'doctor-verify-fuel-inspector'
210 execution-type: PARALLEL
212 - name: 'doctor-{task}-fuel-{inspector}-build-x86_64-{stream}'
213 current-parameters: false
214 predefined-parameters: |
215 GERRIT_BRANCH=$GERRIT_BRANCH
216 GERRIT_REFSPEC=$GERRIT_REFSPEC
217 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
218 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
220 node-parameters: false
221 kill-phase-on: FAILURE
224 name: 'doctor-verify-fuel-inspector'
225 execution-type: PARALLEL
227 - name: 'doctor-{task}-fuel-{inspector}-build-aarch64-{stream}'
228 current-parameters: false
229 predefined-parameters: |
230 GERRIT_BRANCH=$GERRIT_BRANCH
231 GERRIT_REFSPEC=$GERRIT_REFSPEC
232 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
233 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
235 node-parameters: false
236 kill-phase-on: FAILURE
240 name: 'doctor-{task}-{installer}-{inspector}-{phase}-{stream}'
241 disabled: '{obj:disabled}'
242 node: '{slave-label}'
251 - '{installer}-defaults'
252 - '{slave-label}-defaults'
256 - 'doctor-verify-installer-inspector-builders-macro'
258 - 'doctor-verify-publishers-macro'
259 # -------------------------------
261 # -------------------------------
264 name: 'doctor-verify-unit-test-builders-macro'
266 - shell: "tox -e pep8"
269 name: 'doctor-verify-installer-inspector-builders-macro'
271 - 'clean-workspace-log'
272 # yamllint disable rule:line-length
274 # NOTE: Create symbolic link, so that we can archive file outside
276 # NOTE: We are printing all logs under 'tests/' during test run,
277 # so this symbolic link should not be in 'tests/'. Otherwise,
278 # we'll have the same log twice in jenkins console log.
279 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
280 # NOTE: Get functest script in $WORKSPACE. This functest script is
281 # needed to perform VM image download in set-functest-env.sh
282 # from E release cycle.
284 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
285 - 'functest-suite-builder'
287 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
288 # NOTE: checking the test result, as the previous job could return
289 # 0 regardless the result of doctor test scenario.
290 grep -e 'doctor test successfully' $functest_log || exit 1
291 # yamllint enable rule:line-length
293 # -------------------------------
295 # -------------------------------
297 name: 'doctor-verify-publishers-macro'
300 artifacts: 'doctor_tests/*.log'
302 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
303 - email-jenkins-admins-on-failure
306 name: 'doctor-verify-unit-test-publishers-macro'
308 - email-jenkins-admins-on-failure
313 #####################################
315 #####################################
317 name: 'doctor-verify'
320 server-name: 'gerrit.opnfv.org'
322 - patchset-created-event:
323 exclude-drafts: 'false'
324 exclude-trivial-rebase: 'false'
325 exclude-no-code-change: 'false'
326 - draft-published-event
327 - comment-added-contains-event:
328 comment-contains-value: 'recheck'
329 - comment-added-contains-event:
330 comment-contains-value: 'reverify'
332 - project-compare-type: 'ANT'
333 project-pattern: '{project}'
335 - branch-compare-type: 'ANT'
336 branch-pattern: '**/{branch}'
341 successful: '{is-skip-vote}'
342 failed: '{is-skip-vote}'
343 unstable: '{is-skip-vote}'
344 notbuilt: '{is-skip-vote}'