14 branch: 'stable/{stream}'
15 gs-pathname: '/{stream}'
19 # feature projects' tests are not triggered by functest
20 # doctor verify Pods need to deploy with these scenario
23 scenario: 'os-nosdn-kvm-ha'
25 scenario: 'os-nosdn-ovs-ha'
27 scenario: 'os-nosdn-ovs_dpdk-noha'
42 # disabling the following tests due to limitation of PoD owners
43 # these would beenabled again once the PoDs are ready
50 - 'doctor-verify-{inspector}-{stream}'
51 - 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
54 name: 'doctor-verify-{inspector}-{stream}'
55 disabled: '{obj:disabled}'
56 project-type: 'multijob'
61 - 'doctor-slave-parameter'
68 files: 'doctor_tests/**'
73 # we do nothing here as the main stuff will be done
75 echo "Triggering phase jobs!"
78 execution-type: PARALLEL
80 - name: 'doctor-verify-apex-{inspector}-x86_64-{stream}'
81 predefined-parameters: |
83 GERRIT_BRANCH=$GERRIT_BRANCH
84 GERRIT_REFSPEC=$GERRIT_REFSPEC
85 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
86 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
87 kill-phase-on: FAILURE
89 - name: 'doctor-verify-fuel-{inspector}-x86_64-{stream}'
90 predefined-parameters: |
92 GERRIT_BRANCH=$GERRIT_BRANCH
93 GERRIT_REFSPEC=$GERRIT_REFSPEC
94 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
95 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
96 kill-phase-on: FAILURE
98 - name: 'doctor-verify-fuel-{inspector}-aarch64-{stream}'
99 predefined-parameters: |
100 GERRIT_BRANCH=$GERRIT_BRANCH
101 GERRIT_REFSPEC=$GERRIT_REFSPEC
102 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
103 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
104 kill-phase-on: FAILURE
106 - name: 'doctor-verify-daisy-{inspector}-x86_64-{stream}'
107 predefined-parameters: |
109 GERRIT_BRANCH=$GERRIT_BRANCH
110 GERRIT_REFSPEC=$GERRIT_REFSPEC
111 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
112 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
113 kill-phase-on: FAILURE
117 name: 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
118 disabled: '{obj:disabled}'
119 node: 'doctor-{installer}-{arch}'
128 - '{installer}-defaults'
129 - 'doctor-slave-parameter'
130 - 'doctor-parameter':
131 docker-tag: '{docker-tag}'
132 scenario: '{scenario}'
133 - 'doctor-functest-parameter':
134 gs-pathname: '{gs-pathname}'
135 inspector: '{inspector}'
139 - 'doctor-verify-installer-inspector-builders-macro'
141 - 'doctor-verify-publishers-macro'
144 # -------------------------------
146 # -------------------------------
148 name: 'doctor-parameter'
152 default: /home/jenkins/openstack.creds
153 description: 'OpenStack credentials'
156 default: '{docker-tag}'
157 description: 'Tag to pull docker image'
159 name: CLEAN_DOCKER_IMAGES
161 description: 'Remove downloaded docker images (opnfv/functest:*)'
163 name: DEPLOY_SCENARIO
164 default: '{scenario}'
165 description: 'Scenario to deploy and test'
168 name: 'doctor-functest-parameter'
170 # functest-suite-parameter
175 name: FUNCTEST_SUITE_NAME
176 default: 'doctor-notification'
178 name: TESTCASE_OPTIONS
179 # yamllint disable rule:line-length
180 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
181 # yamllint enable rule:line-length
182 description: 'Addtional parameters specific to test case(s)'
186 default: '{gs-pathname}'
187 # yamllint disable rule:line-length
188 description: "Version directory where the opnfv documents will be stored in gs repository"
189 # yamllint enable rule:line-length
191 name: FUNCTEST_REPO_DIR
192 default: "/home/opnfv/repos/functest"
193 description: "Directory where the Functest repository is cloned"
195 name: PUSH_RESULTS_TO_DB
197 description: "Push the results of all the tests to the resultDB"
201 description: "Show debug output information"
202 # -------------------------------
204 # -------------------------------
207 name: 'doctor-verify-installer-inspector-builders-macro'
209 - 'clean-workspace-log'
210 # yamllint disable rule:line-length
212 # NOTE: Create symbolic link, so that we can archive file outside
214 # NOTE: We are printing all logs under 'tests/' during test run,
215 # so this symbolic link should not be in 'tests/'. Otherwise,
216 # we'll have the same log twice in jenkins console log.
217 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
218 # NOTE: Get functest script in $WORKSPACE. This functest script is
219 # needed to perform VM image download in set-functest-env.sh
220 # from E release cycle.
222 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
223 - 'functest-suite-builder'
225 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
226 # NOTE: checking the test result, as the previous job could return
227 # 0 regardless the result of doctor test scenario.
228 grep -e 'doctor test successfully' $functest_log || exit 1
229 # yamllint enable rule:line-length
231 # -------------------------------
233 # -------------------------------
235 name: 'doctor-verify-publishers-macro'
238 artifacts: 'doctor_tests/*.log'
240 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
241 - email-jenkins-admins-on-failure
244 #####################################
246 #####################################
248 name: 'doctor-verify'
251 server-name: 'gerrit.opnfv.org'
253 - patchset-created-event:
254 exclude-drafts: 'false'
255 exclude-trivial-rebase: 'false'
256 exclude-no-code-change: 'false'
257 - draft-published-event
258 - comment-added-contains-event:
259 comment-contains-value: 'recheck'
260 - comment-added-contains-event:
261 comment-contains-value: 'reverify'
263 - project-compare-type: 'ANT'
264 project-pattern: '{project}'
266 - branch-compare-type: 'ANT'
267 branch-pattern: '**/{branch}'