14 branch: 'stable/{stream}'
15 gs-pathname: '/{stream}'
39 - 'doctor-verify-{stream}'
40 - 'doctor-verify-unit-test-{stream}'
41 - 'doctor-verify-{inspector}-{stream}'
42 - 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
45 name: 'doctor-verify-{stream}'
46 disabled: '{obj:disabled}'
47 project-type: 'multijob'
52 - 'opnfv-build-ubuntu-defaults'
57 server-name: 'gerrit.opnfv.org'
59 - patchset-created-event:
60 exclude-drafts: 'false'
61 exclude-trivial-rebase: 'false'
62 exclude-no-code-change: 'false'
63 - draft-published-event
64 - comment-added-contains-event:
65 comment-contains-value: 'recheck'
66 - comment-added-contains-event:
67 comment-contains-value: 'reverify'
69 - project-compare-type: 'ANT'
70 project-pattern: '{project}'
72 - branch-compare-type: 'ANT'
73 branch-pattern: '**/{branch}'
76 pattern: 'doctor_tests/**'
81 # we do nothing here as the main stuff will be done
83 echo "Triggering phase jobs!"
85 name: 'doctor-build-and-unittest'
86 execution-type: PARALLEL
88 - name: 'doctor-verify-unit-test-{stream}'
89 predefined-parameters: |
91 GERRIT_BRANCH=$GERRIT_BRANCH
92 GERRIT_REFSPEC=$GERRIT_REFSPEC
93 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
94 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
95 kill-phase-on: FAILURE
96 current-parameters: true
100 name: 'doctor-verify-unit-test-{stream}'
101 disabled: '{obj:disabled}'
110 - 'opnfv-build-ubuntu-defaults'
114 - 'doctor-verify-unit-test-builders-macro'
116 - 'doctor-verify-unit-test-publishers-macro'
119 name: 'doctor-verify-{inspector}-{stream}'
120 disabled: '{obj:disabled}'
121 project-type: 'multijob'
128 files: 'doctor_tests/**'
133 # we do nothing here as the main stuff will be done
135 echo "Triggering phase jobs!"
137 name: 'doctor-verify-apex-inspector'
138 execution-type: PARALLEL
140 - name: 'doctor-verify-apex-{inspector}-x86_64-{stream}'
141 predefined-parameters: |
143 GERRIT_BRANCH=$GERRIT_BRANCH
144 GERRIT_REFSPEC=$GERRIT_REFSPEC
145 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
146 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
147 kill-phase-on: FAILURE
148 current-parameters: true
151 name: 'doctor-verify-fuel-inspector'
152 execution-type: PARALLEL
154 - name: 'doctor-verify-fuel-{inspector}-x86_64-{stream}'
155 predefined-parameters: |
157 GERRIT_BRANCH=$GERRIT_BRANCH
158 GERRIT_REFSPEC=$GERRIT_REFSPEC
159 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
160 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
161 kill-phase-on: FAILURE
162 current-parameters: true
165 name: 'doctor-verify-fuel-inspector'
166 execution-type: PARALLEL
168 - name: 'doctor-verify-fuel-{inspector}-aarch64-{stream}'
169 predefined-parameters: |
170 GERRIT_BRANCH=$GERRIT_BRANCH
171 GERRIT_REFSPEC=$GERRIT_REFSPEC
172 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
173 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
174 kill-phase-on: FAILURE
175 current-parameters: true
178 name: 'doctor-verify-daisy-inspector'
179 execution-type: PARALLEL
181 - name: 'doctor-verify-daisy-{inspector}-x86_64-{stream}'
182 predefined-parameters: |
184 GERRIT_BRANCH=$GERRIT_BRANCH
185 GERRIT_REFSPEC=$GERRIT_REFSPEC
186 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
187 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
188 kill-phase-on: FAILURE
189 current-parameters: true
193 name: 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
194 disabled: '{obj:disabled}'
195 node: 'doctor-{installer}-{arch}'
204 - '{installer}-defaults'
205 - 'doctor-slave-parameter'
207 - 'doctor-functest-parameter'
211 - 'doctor-verify-installer-inspector-builders-macro'
213 - 'doctor-verify-publishers-macro'
216 # -------------------------------
218 # -------------------------------
220 name: 'doctor-parameter'
224 default: /home/jenkins/openstack.creds
225 description: 'OpenStack credentials'
228 default: '{docker-tag}'
229 description: 'Tag to pull docker image'
231 name: CLEAN_DOCKER_IMAGES
233 description: 'Remove downloaded docker images (opnfv/functest:*)'
235 name: DEPLOY_SCENARIO
236 default: 'os-nosdn-nofeature-ha'
237 description: 'Scenario to deploy and test'
240 name: 'doctor-functest-parameter'
242 # functest-suite-parameter
247 name: FUNCTEST_SUITE_NAME
248 default: 'doctor-notification'
250 name: TESTCASE_OPTIONS
251 # yamllint disable rule:line-length
252 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
253 # yamllint enable rule:line-length
254 description: 'Addtional parameters specific to test case(s)'
258 default: '{gs-pathname}'
259 # yamllint disable rule:line-length
260 description: "Version directory where the opnfv documents will be stored in gs repository"
261 # yamllint enable rule:line-length
263 name: FUNCTEST_REPO_DIR
264 default: "/home/opnfv/repos/functest"
265 description: "Directory where the Functest repository is cloned"
267 name: PUSH_RESULTS_TO_DB
269 description: "Push the results of all the tests to the resultDB"
273 description: "Show debug output information"
274 # -------------------------------
276 # -------------------------------
279 name: 'doctor-verify-unit-test-builders-macro'
281 - shell: "tox -e pep8"
284 name: 'doctor-verify-installer-inspector-builders-macro'
286 - 'clean-workspace-log'
287 # yamllint disable rule:line-length
289 # NOTE: Create symbolic link, so that we can archive file outside
291 # NOTE: We are printing all logs under 'tests/' during test run,
292 # so this symbolic link should not be in 'tests/'. Otherwise,
293 # we'll have the same log twice in jenkins console log.
294 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
295 # NOTE: Get functest script in $WORKSPACE. This functest script is
296 # needed to perform VM image download in set-functest-env.sh
297 # from E release cycle.
299 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
300 - 'functest-suite-builder'
302 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
303 # NOTE: checking the test result, as the previous job could return
304 # 0 regardless the result of doctor test scenario.
305 grep -e 'doctor test successfully' $functest_log || exit 1
306 # yamllint enable rule:line-length
308 # -------------------------------
310 # -------------------------------
312 name: 'doctor-verify-publishers-macro'
315 artifacts: 'doctor_tests/*.log'
317 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
318 - email-jenkins-admins-on-failure
321 name: 'doctor-verify-unit-test-publishers-macro'
323 - 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}'