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'
44 - 'doctor-verify-{inspector}-{stream}'
45 - 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
48 name: 'doctor-verify-{inspector}-{stream}'
49 disabled: '{obj:disabled}'
50 project-type: 'multijob'
55 - 'doctor-slave-parameter'
62 files: 'doctor_tests/**'
67 # we do nothing here as the main stuff will be done
69 echo "Triggering phase jobs!"
72 execution-type: PARALLEL
74 - name: 'doctor-verify-apex-{inspector}-x86_64-{stream}'
75 predefined-parameters: |
77 GERRIT_BRANCH=$GERRIT_BRANCH
78 GERRIT_REFSPEC=$GERRIT_REFSPEC
79 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
80 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
81 kill-phase-on: FAILURE
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
92 - name: 'doctor-verify-fuel-{inspector}-aarch64-{stream}'
93 predefined-parameters: |
94 GERRIT_BRANCH=$GERRIT_BRANCH
95 GERRIT_REFSPEC=$GERRIT_REFSPEC
96 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
97 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
98 kill-phase-on: FAILURE
100 - name: 'doctor-verify-daisy-{inspector}-x86_64-{stream}'
101 predefined-parameters: |
103 GERRIT_BRANCH=$GERRIT_BRANCH
104 GERRIT_REFSPEC=$GERRIT_REFSPEC
105 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
106 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
107 kill-phase-on: FAILURE
111 name: 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
112 disabled: '{obj:disabled}'
113 node: 'doctor-{installer}-{arch}'
122 - '{installer}-defaults'
123 - 'doctor-slave-parameter'
124 - 'doctor-parameter':
125 docker-tag: '{docker-tag}'
126 scenario: '{scenario}'
127 - 'doctor-functest-parameter':
128 gs-pathname: '{gs-pathname}'
129 inspector: '{inspector}'
133 - 'doctor-verify-installer-inspector-builders-macro'
135 - 'doctor-verify-publishers-macro'
138 # -------------------------------
140 # -------------------------------
142 name: 'doctor-parameter'
146 default: /home/jenkins/openstack.creds
147 description: 'OpenStack credentials'
150 default: '{docker-tag}'
151 description: 'Tag to pull docker image'
153 name: CLEAN_DOCKER_IMAGES
155 description: 'Remove downloaded docker images (opnfv/functest:*)'
157 name: DEPLOY_SCENARIO
158 default: '{scenario}'
159 description: 'Scenario to deploy and test'
162 name: 'doctor-functest-parameter'
164 # functest-suite-parameter
169 name: FUNCTEST_SUITE_NAME
170 default: 'doctor-notification'
172 name: TESTCASE_OPTIONS
173 # yamllint disable rule:line-length
174 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
175 # yamllint enable rule:line-length
176 description: 'Addtional parameters specific to test case(s)'
180 default: '{gs-pathname}'
181 # yamllint disable rule:line-length
182 description: "Version directory where the opnfv documents will be stored in gs repository"
183 # yamllint enable rule:line-length
185 name: FUNCTEST_REPO_DIR
186 default: "/home/opnfv/repos/functest"
187 description: "Directory where the Functest repository is cloned"
189 name: PUSH_RESULTS_TO_DB
191 description: "Push the results of all the tests to the resultDB"
195 description: "Show debug output information"
196 # -------------------------------
198 # -------------------------------
201 name: 'doctor-verify-installer-inspector-builders-macro'
203 - 'clean-workspace-log'
204 # yamllint disable rule:line-length
206 # NOTE: Create symbolic link, so that we can archive file outside
208 # NOTE: We are printing all logs under 'tests/' during test run,
209 # so this symbolic link should not be in 'tests/'. Otherwise,
210 # we'll have the same log twice in jenkins console log.
211 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
212 # NOTE: Get functest script in $WORKSPACE. This functest script is
213 # needed to perform VM image download in set-functest-env.sh
214 # from E release cycle.
216 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
217 - 'functest-suite-builder'
219 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
220 # NOTE: checking the test result, as the previous job could return
221 # 0 regardless the result of doctor test scenario.
222 grep -e 'doctor test successfully' $functest_log || exit 1
223 # yamllint enable rule:line-length
225 # -------------------------------
227 # -------------------------------
229 name: 'doctor-verify-publishers-macro'
232 artifacts: 'doctor_tests/*.log'
234 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
235 - email-jenkins-admins-on-failure
238 #####################################
240 #####################################
242 name: 'doctor-verify'
245 server-name: 'gerrit.opnfv.org'
247 - patchset-created-event:
248 exclude-drafts: 'false'
249 exclude-trivial-rebase: 'false'
250 exclude-no-code-change: 'false'
251 - draft-published-event
252 - comment-added-contains-event:
253 comment-contains-value: 'recheck'
254 - comment-added-contains-event:
255 comment-contains-value: 'reverify'
257 - project-compare-type: 'ANT'
258 project-pattern: '{project}'
260 - branch-compare-type: 'ANT'
261 branch-pattern: '**/{branch}'