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!"
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
78 - name: 'doctor-verify-fuel-{inspector}-x86_64-{stream}'
79 predefined-parameters: |
81 GERRIT_BRANCH=$GERRIT_BRANCH
82 GERRIT_REFSPEC=$GERRIT_REFSPEC
83 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
84 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
85 kill-phase-on: FAILURE
87 - name: 'doctor-verify-fuel-{inspector}-aarch64-{stream}'
88 predefined-parameters: |
89 GERRIT_BRANCH=$GERRIT_BRANCH
90 GERRIT_REFSPEC=$GERRIT_REFSPEC
91 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
92 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
93 kill-phase-on: FAILURE
95 - name: 'doctor-verify-daisy-{inspector}-x86_64-{stream}'
96 predefined-parameters: |
98 GERRIT_BRANCH=$GERRIT_BRANCH
99 GERRIT_REFSPEC=$GERRIT_REFSPEC
100 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
101 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
102 kill-phase-on: FAILURE
106 name: 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
107 disabled: '{obj:disabled}'
108 node: 'doctor-{installer}-{arch}'
117 - '{installer}-defaults'
118 - 'doctor-slave-parameter'
120 - 'doctor-functest-parameter'
124 - 'doctor-verify-installer-inspector-builders-macro'
126 - 'doctor-verify-publishers-macro'
129 # -------------------------------
131 # -------------------------------
133 name: 'doctor-parameter'
137 default: /home/jenkins/openstack.creds
138 description: 'OpenStack credentials'
141 default: '{docker-tag}'
142 description: 'Tag to pull docker image'
144 name: CLEAN_DOCKER_IMAGES
146 description: 'Remove downloaded docker images (opnfv/functest:*)'
148 name: DEPLOY_SCENARIO
149 default: 'os-nosdn-nofeature-ha'
150 description: 'Scenario to deploy and test'
153 name: 'doctor-functest-parameter'
155 # functest-suite-parameter
160 name: FUNCTEST_SUITE_NAME
161 default: 'doctor-notification'
163 name: TESTCASE_OPTIONS
164 # yamllint disable rule:line-length
165 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
166 # yamllint enable rule:line-length
167 description: 'Addtional parameters specific to test case(s)'
171 default: '{gs-pathname}'
172 # yamllint disable rule:line-length
173 description: "Version directory where the opnfv documents will be stored in gs repository"
174 # yamllint enable rule:line-length
176 name: FUNCTEST_REPO_DIR
177 default: "/home/opnfv/repos/functest"
178 description: "Directory where the Functest repository is cloned"
180 name: PUSH_RESULTS_TO_DB
182 description: "Push the results of all the tests to the resultDB"
186 description: "Show debug output information"
187 # -------------------------------
189 # -------------------------------
192 name: 'doctor-verify-installer-inspector-builders-macro'
194 - 'clean-workspace-log'
195 # yamllint disable rule:line-length
197 # NOTE: Create symbolic link, so that we can archive file outside
199 # NOTE: We are printing all logs under 'tests/' during test run,
200 # so this symbolic link should not be in 'tests/'. Otherwise,
201 # we'll have the same log twice in jenkins console log.
202 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
203 # NOTE: Get functest script in $WORKSPACE. This functest script is
204 # needed to perform VM image download in set-functest-env.sh
205 # from E release cycle.
207 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
208 - 'functest-suite-builder'
210 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
211 # NOTE: checking the test result, as the previous job could return
212 # 0 regardless the result of doctor test scenario.
213 grep -e 'doctor test successfully' $functest_log || exit 1
214 # yamllint enable rule:line-length
216 # -------------------------------
218 # -------------------------------
220 name: 'doctor-verify-publishers-macro'
223 artifacts: 'doctor_tests/*.log'
225 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
226 - email-jenkins-admins-on-failure
229 #####################################
231 #####################################
233 name: 'doctor-verify'
236 server-name: 'gerrit.opnfv.org'
238 - patchset-created-event:
239 exclude-drafts: 'false'
240 exclude-trivial-rebase: 'false'
241 exclude-no-code-change: 'false'
242 - draft-published-event
243 - comment-added-contains-event:
244 comment-contains-value: 'recheck'
245 - comment-added-contains-event:
246 comment-contains-value: 'reverify'
248 - project-compare-type: 'ANT'
249 project-pattern: '{project}'
251 - branch-compare-type: 'ANT'
252 branch-pattern: '**/{branch}'