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 - '{auto-trigger-name}':
146 files: 'doctor_tests/**'
151 # we do nothing here as the main stuff will be done
153 echo "Triggering phase jobs!"
155 name: 'doctor-verify-apex-inspector'
156 execution-type: PARALLEL
158 - name: 'doctor-{task}-apex-{inspector}-build-x86_64-{stream}'
159 current-parameters: false
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
166 node-parameters: false
167 kill-phase-on: FAILURE
170 name: 'doctor-verify-fuel-inspector'
171 execution-type: PARALLEL
173 - name: 'doctor-{task}-fuel-{inspector}-build-x86_64-{stream}'
174 current-parameters: false
175 predefined-parameters: |
176 GERRIT_BRANCH=$GERRIT_BRANCH
177 GERRIT_REFSPEC=$GERRIT_REFSPEC
178 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
179 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
181 node-parameters: false
182 kill-phase-on: FAILURE
185 name: 'doctor-verify-fuel-inspector'
186 execution-type: PARALLEL
188 - name: 'doctor-{task}-fuel-{inspector}-build-aarch64-{stream}'
189 current-parameters: false
190 predefined-parameters: |
191 GERRIT_BRANCH=$GERRIT_BRANCH
192 GERRIT_REFSPEC=$GERRIT_REFSPEC
193 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
194 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
196 node-parameters: false
197 kill-phase-on: FAILURE
201 name: 'doctor-{task}-{installer}-{inspector}-{phase}-{stream}'
202 disabled: '{obj:disabled}'
203 node: '{slave-label}'
212 - '{installer}-defaults'
213 - '{slave-label}-defaults'
215 - 'doctor-functest-parameter'
219 - 'doctor-verify-installer-inspector-builders-macro'
221 - 'doctor-verify-publishers-macro'
224 # -------------------------------
226 # -------------------------------
228 name: 'doctor-parameter'
232 default: /home/jenkins/openstack.creds
233 description: 'OpenStack credentials'
236 default: '{docker-tag}'
237 description: 'Tag to pull docker image'
239 name: CLEAN_DOCKER_IMAGES
241 description: 'Remove downloaded docker images (opnfv/functest:*)'
243 name: DEPLOY_SCENARIO
244 default: 'os-nosdn-nofeature-ha'
245 description: 'Scenario to deploy and test'
248 name: 'doctor-functest-parameter'
250 # functest-suite-parameter
255 name: FUNCTEST_SUITE_NAME
256 default: 'doctor-notification'
258 name: TESTCASE_OPTIONS
259 # yamllint disable rule:line-length
260 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
261 # yamllint enable rule:line-length
262 description: 'Addtional parameters specific to test case(s)'
266 default: '{gs-pathname}'
267 # yamllint disable rule:line-length
268 description: "Version directory where the opnfv documents will be stored in gs repository"
269 # yamllint enable rule:line-length
271 name: FUNCTEST_REPO_DIR
272 default: "/home/opnfv/repos/functest"
273 description: "Directory where the Functest repository is cloned"
275 name: PUSH_RESULTS_TO_DB
277 description: "Push the results of all the tests to the resultDB"
281 description: "Show debug output information"
282 # -------------------------------
284 # -------------------------------
287 name: 'doctor-verify-unit-test-builders-macro'
289 - shell: "tox -e pep8"
292 name: 'doctor-verify-installer-inspector-builders-macro'
294 - 'clean-workspace-log'
295 # yamllint disable rule:line-length
297 # NOTE: Create symbolic link, so that we can archive file outside
299 # NOTE: We are printing all logs under 'tests/' during test run,
300 # so this symbolic link should not be in 'tests/'. Otherwise,
301 # we'll have the same log twice in jenkins console log.
302 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
303 # NOTE: Get functest script in $WORKSPACE. This functest script is
304 # needed to perform VM image download in set-functest-env.sh
305 # from E release cycle.
307 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
308 - 'functest-suite-builder'
310 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
311 # NOTE: checking the test result, as the previous job could return
312 # 0 regardless the result of doctor test scenario.
313 grep -e 'doctor test successfully' $functest_log || exit 1
314 # yamllint enable rule:line-length
316 # -------------------------------
318 # -------------------------------
320 name: 'doctor-verify-publishers-macro'
323 artifacts: 'doctor_tests/*.log'
325 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
326 - email-jenkins-admins-on-failure
329 name: 'doctor-verify-unit-test-publishers-macro'
331 - email-jenkins-admins-on-failure
336 #####################################
338 #####################################
340 name: 'doctor-verify'
343 server-name: 'gerrit.opnfv.org'
345 - patchset-created-event:
346 exclude-drafts: 'false'
347 exclude-trivial-rebase: 'false'
348 exclude-no-code-change: 'false'
349 - draft-published-event
350 - comment-added-contains-event:
351 comment-contains-value: 'recheck'
352 - comment-added-contains-event:
353 comment-contains-value: 'reverify'
355 - project-compare-type: 'ANT'
356 project-pattern: '{project}'
358 - branch-compare-type: 'ANT'
359 branch-pattern: '**/{branch}'