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
146 name: FUNCTEST_SUITE_NAME
147 default: 'doctor-notification'
149 name: TESTCASE_OPTIONS
150 default: '-e INSPECTOR_TYPE={inspector} -e PYTHON_ENABLE={is-python} -v $WORKSPACE:/home/opnfv/repos/doctor'
151 description: 'Addtional parameters specific to test case(s)'
155 default: '{gs-pathname}'
156 description: "Version directory where the opnfv documents will be stored in gs repository"
158 name: FUNCTEST_REPO_DIR
159 default: "/home/opnfv/repos/functest"
160 description: "Directory where the Functest repository is cloned"
162 name: PUSH_RESULTS_TO_DB
164 description: "Push the results of all the tests to the resultDB"
168 description: "Show debug output information"
174 - '{auto-trigger-name}':
177 files: 'doctor_tests/**'
180 - 'clean-workspace-log'
182 # NOTE: Create symbolic link, so that we can archive file outside
184 # NOTE: We are printing all logs under 'tests/' during test run,
185 # so this symbolic link should not be in 'tests/'. Otherwise,
186 # we'll have the same log twice in jenkins console log.
187 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
188 # NOTE: Get functest script in $WORKSPACE. This functest script is
189 # needed to perform VM image download in set-functest-env.sh
190 # from E release cycle.
192 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
193 - 'functest-suite-builder'
195 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
196 # NOTE: checking the test result, as the previous job could return
197 # 0 regardless the result of doctor test scenario.
198 grep -e 'doctor test successfully' $functest_log || exit 1
202 artifacts: 'doctor_tests/*.log'
204 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
205 - email-jenkins-admins-on-failure
208 #####################################
210 #####################################
212 name: 'doctor-verify'
215 server-name: 'gerrit.opnfv.org'
217 - patchset-created-event:
218 exclude-drafts: 'false'
219 exclude-trivial-rebase: 'false'
220 exclude-no-code-change: 'false'
221 - draft-published-event
222 - comment-added-contains-event:
223 comment-contains-value: 'recheck'
224 - comment-added-contains-event:
225 comment-contains-value: 'reverify'
227 - project-compare-type: 'ANT'
228 project-pattern: '{project}'
230 - branch-compare-type: 'ANT'
231 branch-pattern: '**/{branch}'