14 branch: 'stable/{stream}'
15 gs-pathname: '/{stream}'
34 auto-trigger-name: 'doctor-verify'
41 - 'doctor-verify-{stream}'
42 - 'doctor-verify-unit-test-{stream}'
43 - 'doctor-{task}-{inspector}-{stream}'
44 - 'doctor-{task}-{installer}-{inspector}-{arch}-{stream}'
47 name: 'doctor-verify-{stream}'
48 disabled: '{obj:disabled}'
49 project-type: 'multijob'
54 - 'opnfv-build-ubuntu-defaults'
59 server-name: 'gerrit.opnfv.org'
61 - patchset-created-event:
62 exclude-drafts: 'false'
63 exclude-trivial-rebase: 'false'
64 exclude-no-code-change: 'false'
65 - draft-published-event
66 - comment-added-contains-event:
67 comment-contains-value: 'recheck'
68 - comment-added-contains-event:
69 comment-contains-value: 'reverify'
71 - project-compare-type: 'ANT'
72 project-pattern: '{project}'
74 - branch-compare-type: 'ANT'
75 branch-pattern: '**/{branch}'
78 pattern: 'doctor_tests/**'
82 # we do nothing here as the main stuff will be done
84 echo "Triggering phase jobs!"
86 name: 'doctor-build-and-unittest'
87 execution-type: PARALLEL
89 - name: 'doctor-verify-unit-test-{stream}'
90 predefined-parameters: |
92 GERRIT_BRANCH=$GERRIT_BRANCH
93 GERRIT_REFSPEC=$GERRIT_REFSPEC
94 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
95 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
96 kill-phase-on: FAILURE
97 current-parameters: true
101 name: 'doctor-verify-unit-test-{stream}'
102 disabled: '{obj:disabled}'
111 - 'opnfv-build-ubuntu-defaults'
115 - 'doctor-verify-unit-test-builders-macro'
117 - 'doctor-verify-unit-test-publishers-macro'
120 name: 'doctor-{task}-{inspector}-{stream}'
121 disabled: '{obj:disabled}'
122 project-type: 'multijob'
126 - '{auto-trigger-name}':
129 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-{task}-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-{task}-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-{task}-fuel-{inspector}-aarch64-{stream}'
169 predefined-parameters: |
171 GERRIT_BRANCH=$GERRIT_BRANCH
172 GERRIT_REFSPEC=$GERRIT_REFSPEC
173 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
174 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
175 kill-phase-on: FAILURE
176 current-parameters: true
180 name: 'doctor-{task}-{installer}-{inspector}-{arch}-{stream}'
181 disabled: '{obj:disabled}'
182 node: 'doctor-{installer}-{arch}'
191 - '{installer}-defaults'
192 - 'doctor-slave-parameter'
194 - 'doctor-functest-parameter'
198 - 'doctor-verify-installer-inspector-builders-macro'
200 - 'doctor-verify-publishers-macro'
203 # -------------------------------
205 # -------------------------------
207 name: 'doctor-parameter'
211 default: /home/jenkins/openstack.creds
212 description: 'OpenStack credentials'
215 default: '{docker-tag}'
216 description: 'Tag to pull docker image'
218 name: CLEAN_DOCKER_IMAGES
220 description: 'Remove downloaded docker images (opnfv/functest:*)'
222 name: DEPLOY_SCENARIO
223 default: 'os-nosdn-nofeature-ha'
224 description: 'Scenario to deploy and test'
227 name: 'doctor-functest-parameter'
229 # functest-suite-parameter
234 name: FUNCTEST_SUITE_NAME
235 default: 'doctor-notification'
237 name: TESTCASE_OPTIONS
238 # yamllint disable rule:line-length
239 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
240 # yamllint enable rule:line-length
241 description: 'Addtional parameters specific to test case(s)'
245 default: '{gs-pathname}'
246 # yamllint disable rule:line-length
247 description: "Version directory where the opnfv documents will be stored in gs repository"
248 # yamllint enable rule:line-length
250 name: FUNCTEST_REPO_DIR
251 default: "/home/opnfv/repos/functest"
252 description: "Directory where the Functest repository is cloned"
254 name: PUSH_RESULTS_TO_DB
256 description: "Push the results of all the tests to the resultDB"
260 description: "Show debug output information"
261 # -------------------------------
263 # -------------------------------
266 name: 'doctor-verify-unit-test-builders-macro'
268 - shell: "tox -e pep8"
271 name: 'doctor-verify-installer-inspector-builders-macro'
273 - 'clean-workspace-log'
274 # yamllint disable rule:line-length
276 # NOTE: Create symbolic link, so that we can archive file outside
278 # NOTE: We are printing all logs under 'tests/' during test run,
279 # so this symbolic link should not be in 'tests/'. Otherwise,
280 # we'll have the same log twice in jenkins console log.
281 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
282 # NOTE: Get functest script in $WORKSPACE. This functest script is
283 # needed to perform VM image download in set-functest-env.sh
284 # from E release cycle.
286 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
287 - 'functest-suite-builder'
289 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
290 # NOTE: checking the test result, as the previous job could return
291 # 0 regardless the result of doctor test scenario.
292 grep -e 'doctor test successfully' $functest_log || exit 1
293 # yamllint enable rule:line-length
295 # -------------------------------
297 # -------------------------------
299 name: 'doctor-verify-publishers-macro'
302 artifacts: 'doctor_tests/*.log'
304 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
305 - email-jenkins-admins-on-failure
308 name: 'doctor-verify-unit-test-publishers-macro'
310 - email-jenkins-admins-on-failure
315 #####################################
317 #####################################
319 name: 'doctor-verify'
322 server-name: 'gerrit.opnfv.org'
324 - patchset-created-event:
325 exclude-drafts: 'false'
326 exclude-trivial-rebase: 'false'
327 exclude-no-code-change: 'false'
328 - draft-published-event
329 - comment-added-contains-event:
330 comment-contains-value: 'recheck'
331 - comment-added-contains-event:
332 comment-contains-value: 'reverify'
334 - project-compare-type: 'ANT'
335 project-pattern: '{project}'
337 - branch-compare-type: 'ANT'
338 branch-pattern: '**/{branch}'