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'
70 server-name: 'gerrit.opnfv.org'
72 - patchset-created-event:
73 exclude-drafts: 'false'
74 exclude-trivial-rebase: 'false'
75 exclude-no-code-change: 'false'
76 - draft-published-event
77 - comment-added-contains-event:
78 comment-contains-value: 'recheck'
79 - comment-added-contains-event:
80 comment-contains-value: 'reverify'
82 - project-compare-type: 'ANT'
83 project-pattern: '{project}'
85 - branch-compare-type: 'ANT'
86 branch-pattern: '**/{branch}'
89 pattern: 'doctor_tests/**'
94 # we do nothing here as the main stuff will be done
96 echo "Triggering phase jobs!"
98 name: 'doctor-build-and-unittest'
99 execution-type: PARALLEL
101 - name: 'doctor-verify-unit-test-{stream}'
102 current-parameters: false
103 predefined-parameters: |
104 GERRIT_BRANCH=$GERRIT_BRANCH
105 GERRIT_REFSPEC=$GERRIT_REFSPEC
106 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
107 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
109 node-parameters: false
110 kill-phase-on: FAILURE
114 name: 'doctor-verify-unit-test-{stream}'
115 disabled: '{obj:disabled}'
124 - 'opnfv-build-ubuntu-defaults'
128 - 'doctor-verify-unit-test-builders-macro'
130 - 'doctor-verify-unit-test-publishers-macro'
133 name: 'doctor-{task}-{inspector}-{stream}'
135 disabled: '{obj:disabled}'
137 project-type: 'multijob'
143 - 'opnfv-build-ubuntu-defaults'
146 default: /home/jenkins/openstack.creds
147 description: 'OpenStack credentials'
150 default: '{docker-tag}'
151 description: 'Tag to pull docker image'
153 name: CLEAN_DOCKER_IMAGES
155 description: 'Remove downloaded docker images (opnfv/functest:*)'
157 name: DEPLOY_SCENARIO
158 default: 'os-nosdn-nofeature-ha'
159 description: 'Scenario to deploy and test'
160 # functest-suite-parameter
165 name: FUNCTEST_SUITE_NAME
166 default: 'doctor-notification'
168 name: TESTCASE_OPTIONS
169 # yamllint disable rule:line-length
170 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
171 # yamllint enable rule:line-length
172 description: 'Addtional parameters specific to test case(s)'
176 default: '{gs-pathname}'
177 # yamllint disable rule:line-length
178 description: "Version directory where the opnfv documents will be stored in gs repository"
179 # yamllint enable rule:line-length
181 name: FUNCTEST_REPO_DIR
182 default: "/home/opnfv/repos/functest"
183 description: "Directory where the Functest repository is cloned"
185 name: PUSH_RESULTS_TO_DB
187 description: "Push the results of all the tests to the resultDB"
191 description: "Show debug output information"
197 - '{auto-trigger-name}':
200 files: 'doctor_tests/**'
205 # we do nothing here as the main stuff will be done
207 echo "Triggering phase jobs!"
209 name: 'doctor-verify-apex-inspector'
210 execution-type: PARALLEL
212 - name: 'doctor-{task}-apex-{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-x86_64-{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
239 name: 'doctor-verify-fuel-inspector'
240 execution-type: PARALLEL
242 - name: 'doctor-{task}-fuel-{inspector}-build-aarch64-{stream}'
243 current-parameters: false
244 predefined-parameters: |
245 GERRIT_BRANCH=$GERRIT_BRANCH
246 GERRIT_REFSPEC=$GERRIT_REFSPEC
247 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
248 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
250 node-parameters: false
251 kill-phase-on: FAILURE
255 name: 'doctor-{task}-{installer}-{inspector}-{phase}-{stream}'
256 disabled: '{obj:disabled}'
257 node: '{slave-label}'
266 - '{installer}-defaults'
267 - '{slave-label}-defaults'
271 - 'doctor-verify-installer-inspector-builders-macro'
273 - 'doctor-verify-publishers-macro'
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}'