13 branch: 'stable/{stream}'
14 gs-pathname: '/{stream}'
20 slave-label: 'doctor-apex-verify'
22 slave-label: 'doctor-fuel-verify'
24 # slave-label: 'ool-virtual3'
33 auto-trigger-name: 'doctor-verify'
36 auto-trigger-name: 'doctor-verify'
46 - 'doctor-verify-{stream}'
47 - 'doctor-{task}-{installer}-{inspector}-{pod}-{stream}'
48 - 'doctor-{task}-{installer}-{inspector}-{stream}'
51 name: 'doctor-verify-{stream}'
53 disabled: '{obj:disabled}'
59 - 'opnfv-build-ubuntu-defaults'
66 server-name: 'gerrit.opnfv.org'
68 - patchset-created-event:
69 exclude-drafts: 'false'
70 exclude-trivial-rebase: 'false'
71 exclude-no-code-change: 'false'
72 - draft-published-event
73 - comment-added-contains-event:
74 comment-contains-value: 'recheck'
75 - comment-added-contains-event:
76 comment-contains-value: 'reverify'
78 - project-compare-type: 'ANT'
79 project-pattern: '{project}'
81 - branch-compare-type: 'ANT'
82 branch-pattern: '**/{branch}'
85 pattern: 'doctor_tests/**'
88 - shell: "[ -e tests/run.sh ] && bash -n ./tests/run.sh"
91 name: 'doctor-{task}-{installer}-{inspector}-{pod}-{stream}'
95 disabled: '{obj:disabled}'
101 - 'opnfv-build-ubuntu-defaults'
108 - '{auto-trigger-name}':
111 files: 'doctor_tests/**'
114 - shell: "[ -e tests/run.sh ] && bash -n ./tests/run.sh"
118 name: 'doctor-{task}-{installer}-{inspector}-{stream}'
120 node: '{slave-label}'
128 default: /home/jenkins/openstack.creds
129 description: 'OpenStack credentials'
130 - '{slave-label}-defaults'
131 - '{installer}-defaults'
134 default: '{docker-tag}'
135 description: 'Tag to pull docker image'
137 name: CLEAN_DOCKER_IMAGES
139 description: 'Remove downloaded docker images (opnfv/functest:*)'
141 name: DEPLOY_SCENARIO
142 default: 'os-nosdn-nofeature-ha'
143 description: 'Scenario to deploy and test'
144 # functest-suite-parameter
149 name: FUNCTEST_SUITE_NAME
150 default: 'doctor-notification'
152 name: TESTCASE_OPTIONS
153 default: '-e INSPECTOR_TYPE={inspector} -e PYTHON_ENABLE={is-python} -v $WORKSPACE:/home/opnfv/repos/doctor'
154 description: 'Addtional parameters specific to test case(s)'
158 default: '{gs-pathname}'
159 description: "Version directory where the opnfv documents will be stored in gs repository"
161 name: FUNCTEST_REPO_DIR
162 default: "/home/opnfv/repos/functest"
163 description: "Directory where the Functest repository is cloned"
165 name: PUSH_RESULTS_TO_DB
167 description: "Push the results of all the tests to the resultDB"
171 description: "Show debug output information"
177 - '{auto-trigger-name}':
180 files: 'doctor_tests/**'
183 - 'clean-workspace-log'
185 # NOTE: Create symbolic link, so that we can archive file outside
187 # NOTE: We are printing all logs under 'tests/' during test run,
188 # so this symbolic link should not be in 'tests/'. Otherwise,
189 # we'll have the same log twice in jenkins console log.
190 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
191 # NOTE: Get functest script in $WORKSPACE. This functest script is
192 # needed to perform VM image download in set-functest-env.sh
193 # from E release cycle.
195 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
196 - 'functest-suite-builder'
198 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
199 # NOTE: checking the test result, as the previous job could return
200 # 0 regardless the result of doctor test scenario.
201 grep -e 'doctor test successfully' $functest_log || exit 1
205 artifacts: 'doctor_tests/*.log'
207 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
208 - email-jenkins-admins-on-failure
211 #####################################
213 #####################################
215 name: 'doctor-verify'
218 server-name: 'gerrit.opnfv.org'
220 - patchset-created-event:
221 exclude-drafts: 'false'
222 exclude-trivial-rebase: 'false'
223 exclude-no-code-change: 'false'
224 - draft-published-event
225 - comment-added-contains-event:
226 comment-contains-value: 'recheck'
227 - comment-added-contains-event:
228 comment-contains-value: 'reverify'
230 - project-compare-type: 'ANT'
231 project-pattern: '{project}'
233 - branch-compare-type: 'ANT'
234 branch-pattern: '**/{branch}'