14 branch: 'stable/{stream}'
15 gs-pathname: '/{stream}'
39 - 'doctor-verify-{inspector}-{stream}'
40 - 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
43 name: 'doctor-verify-{inspector}-{stream}'
44 disabled: '{obj:disabled}'
45 project-type: 'multijob'
50 - 'doctor-slave-parameter'
57 files: 'doctor_tests/**'
62 # we do nothing here as the main stuff will be done
64 echo "Triggering phase jobs!"
66 name: 'doctor-verify-apex-inspector'
67 execution-type: PARALLEL
69 - name: 'doctor-verify-apex-{inspector}-x86_64-{stream}'
70 predefined-parameters: |
72 GERRIT_BRANCH=$GERRIT_BRANCH
73 GERRIT_REFSPEC=$GERRIT_REFSPEC
74 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
75 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
76 kill-phase-on: FAILURE
77 current-parameters: true
80 name: 'doctor-verify-fuel-inspector'
81 execution-type: PARALLEL
83 - name: 'doctor-verify-fuel-{inspector}-x86_64-{stream}'
84 predefined-parameters: |
86 GERRIT_BRANCH=$GERRIT_BRANCH
87 GERRIT_REFSPEC=$GERRIT_REFSPEC
88 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
89 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
90 kill-phase-on: FAILURE
91 current-parameters: true
94 name: 'doctor-verify-fuel-inspector'
95 execution-type: PARALLEL
97 - name: 'doctor-verify-fuel-{inspector}-aarch64-{stream}'
98 predefined-parameters: |
99 GERRIT_BRANCH=$GERRIT_BRANCH
100 GERRIT_REFSPEC=$GERRIT_REFSPEC
101 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
102 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
103 kill-phase-on: FAILURE
104 current-parameters: true
107 name: 'doctor-verify-daisy-inspector'
108 execution-type: PARALLEL
110 - name: 'doctor-verify-daisy-{inspector}-x86_64-{stream}'
111 predefined-parameters: |
113 GERRIT_BRANCH=$GERRIT_BRANCH
114 GERRIT_REFSPEC=$GERRIT_REFSPEC
115 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
116 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
117 kill-phase-on: FAILURE
118 current-parameters: true
122 name: 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
123 disabled: '{obj:disabled}'
124 node: 'doctor-{installer}-{arch}'
133 - '{installer}-defaults'
134 - 'doctor-slave-parameter'
136 - 'doctor-functest-parameter'
140 - 'doctor-verify-installer-inspector-builders-macro'
142 - 'doctor-verify-publishers-macro'
145 # -------------------------------
147 # -------------------------------
149 name: 'doctor-parameter'
153 default: /home/jenkins/openstack.creds
154 description: 'OpenStack credentials'
157 default: '{docker-tag}'
158 description: 'Tag to pull docker image'
160 name: CLEAN_DOCKER_IMAGES
162 description: 'Remove downloaded docker images (opnfv/functest:*)'
164 name: DEPLOY_SCENARIO
165 default: 'os-nosdn-nofeature-ha'
166 description: 'Scenario to deploy and test'
169 name: 'doctor-functest-parameter'
171 # functest-suite-parameter
176 name: FUNCTEST_SUITE_NAME
177 default: 'doctor-notification'
179 name: TESTCASE_OPTIONS
180 # yamllint disable rule:line-length
181 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
182 # yamllint enable rule:line-length
183 description: 'Addtional parameters specific to test case(s)'
187 default: '{gs-pathname}'
188 # yamllint disable rule:line-length
189 description: "Version directory where the opnfv documents will be stored in gs repository"
190 # yamllint enable rule:line-length
192 name: FUNCTEST_REPO_DIR
193 default: "/home/opnfv/repos/functest"
194 description: "Directory where the Functest repository is cloned"
196 name: PUSH_RESULTS_TO_DB
198 description: "Push the results of all the tests to the resultDB"
202 description: "Show debug output information"
203 # -------------------------------
205 # -------------------------------
208 name: 'doctor-verify-installer-inspector-builders-macro'
210 - 'clean-workspace-log'
211 # yamllint disable rule:line-length
213 # NOTE: Create symbolic link, so that we can archive file outside
215 # NOTE: We are printing all logs under 'tests/' during test run,
216 # so this symbolic link should not be in 'tests/'. Otherwise,
217 # we'll have the same log twice in jenkins console log.
218 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
219 # NOTE: Get functest script in $WORKSPACE. This functest script is
220 # needed to perform VM image download in set-functest-env.sh
221 # from E release cycle.
223 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
224 - 'functest-suite-builder'
226 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
227 # NOTE: checking the test result, as the previous job could return
228 # 0 regardless the result of doctor test scenario.
229 grep -e 'doctor test successfully' $functest_log || exit 1
230 # yamllint enable rule:line-length
232 # -------------------------------
234 # -------------------------------
236 name: 'doctor-verify-publishers-macro'
239 artifacts: 'doctor_tests/*.log'
241 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
242 - email-jenkins-admins-on-failure
245 #####################################
247 #####################################
249 name: 'doctor-verify'
252 server-name: 'gerrit.opnfv.org'
254 - patchset-created-event:
255 exclude-drafts: 'false'
256 exclude-trivial-rebase: 'false'
257 exclude-no-code-change: 'false'
258 - draft-published-event
259 - comment-added-contains-event:
260 comment-contains-value: 'recheck'
261 - comment-added-contains-event:
262 comment-contains-value: 'reverify'
264 - project-compare-type: 'ANT'
265 project-pattern: '{project}'
267 - branch-compare-type: 'ANT'
268 branch-pattern: '**/{branch}'