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: |
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
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}'
118 disabled: '{obj:disabled}'
119 project-type: 'multijob'
123 - '{auto-trigger-name}':
126 files: 'doctor_tests/**'
130 # we do nothing here as the main stuff will be done
132 echo "Triggering phase jobs!"
134 name: 'doctor-verify-apex-inspector'
135 execution-type: PARALLEL
137 - name: 'doctor-{task}-apex-{inspector}-x86_64-{stream}'
138 predefined-parameters: |
139 GERRIT_BRANCH=$GERRIT_BRANCH
140 GERRIT_REFSPEC=$GERRIT_REFSPEC
141 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
142 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
143 kill-phase-on: FAILURE
145 name: 'doctor-verify-fuel-inspector'
146 execution-type: PARALLEL
148 - name: 'doctor-{task}-fuel-{inspector}-x86_64-{stream}'
149 predefined-parameters: |
150 GERRIT_BRANCH=$GERRIT_BRANCH
151 GERRIT_REFSPEC=$GERRIT_REFSPEC
152 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
153 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
154 kill-phase-on: FAILURE
156 name: 'doctor-verify-fuel-inspector'
157 execution-type: PARALLEL
159 - name: 'doctor-{task}-fuel-{inspector}-aarch64-{stream}'
160 predefined-parameters: |
161 GERRIT_BRANCH=$GERRIT_BRANCH
162 GERRIT_REFSPEC=$GERRIT_REFSPEC
163 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
164 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
165 kill-phase-on: FAILURE
168 name: 'doctor-{task}-{installer}-{inspector}-{arch}-{stream}'
169 disabled: '{obj:disabled}'
170 node: 'doctor-{installer}-{arch}'
179 - '{installer}-defaults'
180 - 'doctor-slave-parameter'
182 - 'doctor-functest-parameter'
186 - 'doctor-verify-installer-inspector-builders-macro'
188 - 'doctor-verify-publishers-macro'
191 # -------------------------------
193 # -------------------------------
195 name: 'doctor-parameter'
199 default: /home/jenkins/openstack.creds
200 description: 'OpenStack credentials'
203 default: '{docker-tag}'
204 description: 'Tag to pull docker image'
206 name: CLEAN_DOCKER_IMAGES
208 description: 'Remove downloaded docker images (opnfv/functest:*)'
210 name: DEPLOY_SCENARIO
211 default: 'os-nosdn-nofeature-ha'
212 description: 'Scenario to deploy and test'
215 name: 'doctor-functest-parameter'
217 # functest-suite-parameter
222 name: FUNCTEST_SUITE_NAME
223 default: 'doctor-notification'
225 name: TESTCASE_OPTIONS
226 # yamllint disable rule:line-length
227 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
228 # yamllint enable rule:line-length
229 description: 'Addtional parameters specific to test case(s)'
233 default: '{gs-pathname}'
234 # yamllint disable rule:line-length
235 description: "Version directory where the opnfv documents will be stored in gs repository"
236 # yamllint enable rule:line-length
238 name: FUNCTEST_REPO_DIR
239 default: "/home/opnfv/repos/functest"
240 description: "Directory where the Functest repository is cloned"
242 name: PUSH_RESULTS_TO_DB
244 description: "Push the results of all the tests to the resultDB"
248 description: "Show debug output information"
249 # -------------------------------
251 # -------------------------------
254 name: 'doctor-verify-unit-test-builders-macro'
256 - shell: "tox -e pep8"
259 name: 'doctor-verify-installer-inspector-builders-macro'
261 - 'clean-workspace-log'
262 # yamllint disable rule:line-length
264 # NOTE: Create symbolic link, so that we can archive file outside
266 # NOTE: We are printing all logs under 'tests/' during test run,
267 # so this symbolic link should not be in 'tests/'. Otherwise,
268 # we'll have the same log twice in jenkins console log.
269 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
270 # NOTE: Get functest script in $WORKSPACE. This functest script is
271 # needed to perform VM image download in set-functest-env.sh
272 # from E release cycle.
274 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
275 - 'functest-suite-builder'
277 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
278 # NOTE: checking the test result, as the previous job could return
279 # 0 regardless the result of doctor test scenario.
280 grep -e 'doctor test successfully' $functest_log || exit 1
281 # yamllint enable rule:line-length
283 # -------------------------------
285 # -------------------------------
287 name: 'doctor-verify-publishers-macro'
290 artifacts: 'doctor_tests/*.log'
292 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
293 - email-jenkins-admins-on-failure
296 name: 'doctor-verify-unit-test-publishers-macro'
298 - email-jenkins-admins-on-failure
303 #####################################
305 #####################################
307 name: 'doctor-verify'
310 server-name: 'gerrit.opnfv.org'
312 - patchset-created-event:
313 exclude-drafts: 'false'
314 exclude-trivial-rebase: 'false'
315 exclude-no-code-change: 'false'
316 - draft-published-event
317 - comment-added-contains-event:
318 comment-contains-value: 'recheck'
319 - comment-added-contains-event:
320 comment-contains-value: 'reverify'
322 - project-compare-type: 'ANT'
323 project-pattern: '{project}'
325 - branch-compare-type: 'ANT'
326 branch-pattern: '**/{branch}'