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'
34 auto-trigger-name: 'doctor-verify'
37 auto-trigger-name: 'doctor-verify'
47 - 'doctor-verify-{stream}'
48 - 'doctor-{task}-{installer}-{inspector}-{pod}-{stream}'
49 - 'doctor-{task}-{installer}-{inspector}-{stream}'
52 name: 'doctor-verify-{stream}'
54 disabled: '{obj:disabled}'
60 - 'opnfv-build-ubuntu-defaults'
67 server-name: 'gerrit.opnfv.org'
69 - patchset-created-event:
70 exclude-drafts: 'false'
71 exclude-trivial-rebase: 'false'
72 exclude-no-code-change: 'false'
73 - draft-published-event
74 - comment-added-contains-event:
75 comment-contains-value: 'recheck'
76 - comment-added-contains-event:
77 comment-contains-value: 'reverify'
79 - project-compare-type: 'ANT'
80 project-pattern: '{project}'
82 - branch-compare-type: 'ANT'
83 branch-pattern: '**/{branch}'
86 pattern: 'doctor_tests/**'
89 - shell: "[ -e tests/run.sh ] && bash -n ./tests/run.sh"
92 name: 'doctor-{task}-{installer}-{inspector}-{pod}-{stream}'
96 disabled: '{obj:disabled}'
102 - 'opnfv-build-ubuntu-defaults'
109 - '{auto-trigger-name}':
112 files: 'doctor_tests/**'
115 - shell: "[ -e tests/run.sh ] && bash -n ./tests/run.sh"
119 name: 'doctor-{task}-{installer}-{inspector}-{stream}'
121 node: '{slave-label}'
129 default: /home/jenkins/openstack.creds
130 description: 'OpenStack credentials'
131 - '{slave-label}-defaults'
132 - '{installer}-defaults'
135 default: '{docker-tag}'
136 description: 'Tag to pull docker image'
138 name: CLEAN_DOCKER_IMAGES
140 description: 'Remove downloaded docker images (opnfv/functest:*)'
142 name: DEPLOY_SCENARIO
143 default: 'os-nosdn-nofeature-ha'
144 description: 'Scenario to deploy and test'
145 # functest-suite-parameter
150 name: FUNCTEST_SUITE_NAME
151 default: 'doctor-notification'
153 name: TESTCASE_OPTIONS
154 default: '-e INSPECTOR_TYPE={inspector} -e PYTHON_ENABLE={is-python} -v $WORKSPACE:/home/opnfv/repos/doctor'
155 description: 'Addtional parameters specific to test case(s)'
159 default: '{gs-pathname}'
160 description: "Version directory where the opnfv documents will be stored in gs repository"
162 name: FUNCTEST_REPO_DIR
163 default: "/home/opnfv/repos/functest"
164 description: "Directory where the Functest repository is cloned"
166 name: PUSH_RESULTS_TO_DB
168 description: "Push the results of all the tests to the resultDB"
172 description: "Show debug output information"
178 - '{auto-trigger-name}':
181 files: 'doctor_tests/**'
184 - 'clean-workspace-log'
186 # NOTE: Create symbolic link, so that we can archive file outside
188 # NOTE: We are printing all logs under 'tests/' during test run,
189 # so this symbolic link should not be in 'tests/'. Otherwise,
190 # we'll have the same log twice in jenkins console log.
191 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
192 # NOTE: Get functest script in $WORKSPACE. This functest script is
193 # needed to perform VM image download in set-functest-env.sh
194 # from E release cycle.
196 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
197 - 'functest-suite-builder'
199 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
200 # NOTE: checking the test result, as the previous job could return
201 # 0 regardless the result of doctor test scenario.
202 grep -e 'doctor test successfully' $functest_log || exit 1
206 artifacts: 'doctor_tests/*.log'
208 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
209 - email-jenkins-admins-on-failure
212 #####################################
214 #####################################
216 name: 'doctor-verify'
219 server-name: 'gerrit.opnfv.org'
221 - patchset-created-event:
222 exclude-drafts: 'false'
223 exclude-trivial-rebase: 'false'
224 exclude-no-code-change: 'false'
225 - draft-published-event
226 - comment-added-contains-event:
227 comment-contains-value: 'recheck'
228 - comment-added-contains-event:
229 comment-contains-value: 'reverify'
231 - project-compare-type: 'ANT'
232 project-pattern: '{project}'
234 - branch-compare-type: 'ANT'
235 branch-pattern: '**/{branch}'