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'
126 - 'opnfv-build-ubuntu-defaults'
133 files: 'doctor_tests/**'
138 # we do nothing here as the main stuff will be done
140 echo "Triggering phase jobs!"
142 name: 'doctor-verify-apex-inspector'
143 execution-type: PARALLEL
145 - name: 'doctor-verify-apex-{inspector}-x86_64-{stream}'
146 predefined-parameters: |
148 GERRIT_BRANCH=$GERRIT_BRANCH
149 GERRIT_REFSPEC=$GERRIT_REFSPEC
150 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
151 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
152 kill-phase-on: FAILURE
153 current-parameters: true
156 name: 'doctor-verify-fuel-inspector'
157 execution-type: PARALLEL
159 - name: 'doctor-verify-fuel-{inspector}-x86_64-{stream}'
160 predefined-parameters: |
162 GERRIT_BRANCH=$GERRIT_BRANCH
163 GERRIT_REFSPEC=$GERRIT_REFSPEC
164 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
165 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
166 kill-phase-on: FAILURE
167 current-parameters: true
170 name: 'doctor-verify-fuel-inspector'
171 execution-type: PARALLEL
173 - name: 'doctor-verify-fuel-{inspector}-aarch64-{stream}'
174 predefined-parameters: |
175 GERRIT_BRANCH=$GERRIT_BRANCH
176 GERRIT_REFSPEC=$GERRIT_REFSPEC
177 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
178 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
179 kill-phase-on: FAILURE
180 current-parameters: true
183 name: 'doctor-verify-daisy-inspector'
184 execution-type: PARALLEL
186 - name: 'doctor-verify-daisy-{inspector}-x86_64-{stream}'
187 predefined-parameters: |
189 GERRIT_BRANCH=$GERRIT_BRANCH
190 GERRIT_REFSPEC=$GERRIT_REFSPEC
191 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
192 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
193 kill-phase-on: FAILURE
194 current-parameters: true
198 name: 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
199 disabled: '{obj:disabled}'
200 node: 'doctor-{installer}-{arch}'
209 - '{installer}-defaults'
210 - 'doctor-slave-parameter'
212 - 'doctor-functest-parameter'
216 - 'doctor-verify-installer-inspector-builders-macro'
218 - 'doctor-verify-publishers-macro'
221 # -------------------------------
223 # -------------------------------
225 name: 'doctor-parameter'
229 default: /home/jenkins/openstack.creds
230 description: 'OpenStack credentials'
233 default: '{docker-tag}'
234 description: 'Tag to pull docker image'
236 name: CLEAN_DOCKER_IMAGES
238 description: 'Remove downloaded docker images (opnfv/functest:*)'
240 name: DEPLOY_SCENARIO
241 default: 'os-nosdn-nofeature-ha'
242 description: 'Scenario to deploy and test'
245 name: 'doctor-functest-parameter'
247 # functest-suite-parameter
252 name: FUNCTEST_SUITE_NAME
253 default: 'doctor-notification'
255 name: TESTCASE_OPTIONS
256 # yamllint disable rule:line-length
257 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
258 # yamllint enable rule:line-length
259 description: 'Addtional parameters specific to test case(s)'
263 default: '{gs-pathname}'
264 # yamllint disable rule:line-length
265 description: "Version directory where the opnfv documents will be stored in gs repository"
266 # yamllint enable rule:line-length
268 name: FUNCTEST_REPO_DIR
269 default: "/home/opnfv/repos/functest"
270 description: "Directory where the Functest repository is cloned"
272 name: PUSH_RESULTS_TO_DB
274 description: "Push the results of all the tests to the resultDB"
278 description: "Show debug output information"
279 # -------------------------------
281 # -------------------------------
284 name: 'doctor-verify-unit-test-builders-macro'
286 - shell: "tox -e pep8"
289 name: 'doctor-verify-installer-inspector-builders-macro'
291 - 'clean-workspace-log'
292 # yamllint disable rule:line-length
294 # NOTE: Create symbolic link, so that we can archive file outside
296 # NOTE: We are printing all logs under 'tests/' during test run,
297 # so this symbolic link should not be in 'tests/'. Otherwise,
298 # we'll have the same log twice in jenkins console log.
299 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
300 # NOTE: Get functest script in $WORKSPACE. This functest script is
301 # needed to perform VM image download in set-functest-env.sh
302 # from E release cycle.
304 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
305 - 'functest-suite-builder'
307 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
308 # NOTE: checking the test result, as the previous job could return
309 # 0 regardless the result of doctor test scenario.
310 grep -e 'doctor test successfully' $functest_log || exit 1
311 # yamllint enable rule:line-length
313 # -------------------------------
315 # -------------------------------
317 name: 'doctor-verify-publishers-macro'
320 artifacts: 'doctor_tests/*.log'
322 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
323 - email-jenkins-admins-on-failure
326 name: 'doctor-verify-unit-test-publishers-macro'
328 - email-jenkins-admins-on-failure
333 #####################################
335 #####################################
337 name: 'doctor-verify'
340 server-name: 'gerrit.opnfv.org'
342 - patchset-created-event:
343 exclude-drafts: 'false'
344 exclude-trivial-rebase: 'false'
345 exclude-no-code-change: 'false'
346 - draft-published-event
347 - comment-added-contains-event:
348 comment-contains-value: 'recheck'
349 - comment-added-contains-event:
350 comment-contains-value: 'reverify'
352 - project-compare-type: 'ANT'
353 project-pattern: '{project}'
355 - branch-compare-type: 'ANT'
356 branch-pattern: '**/{branch}'