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'
131 - 'doctor-verify-installer-inspector-builders-macro'
133 - 'doctor-verify-publishers-macro'
136 # -------------------------------
138 # -------------------------------
140 name: 'doctor-parameter'
144 default: /home/jenkins/openstack.creds
145 description: 'OpenStack credentials'
148 default: '{docker-tag}'
149 description: 'Tag to pull docker image'
151 name: CLEAN_DOCKER_IMAGES
153 description: 'Remove downloaded docker images (opnfv/functest:*)'
155 name: DEPLOY_SCENARIO
156 default: '{scenario}'
157 description: 'Scenario to deploy and test'
160 name: 'doctor-functest-parameter'
162 # functest-suite-parameter
167 name: FUNCTEST_SUITE_NAME
168 default: 'doctor-notification'
170 name: TESTCASE_OPTIONS
171 # yamllint disable rule:line-length
172 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
173 # yamllint enable rule:line-length
174 description: 'Addtional parameters specific to test case(s)'
178 default: '{gs-pathname}'
179 # yamllint disable rule:line-length
180 description: "Version directory where the opnfv documents will be stored in gs repository"
181 # yamllint enable rule:line-length
183 name: FUNCTEST_REPO_DIR
184 default: "/home/opnfv/repos/functest"
185 description: "Directory where the Functest repository is cloned"
187 name: PUSH_RESULTS_TO_DB
189 description: "Push the results of all the tests to the resultDB"
193 description: "Show debug output information"
194 # -------------------------------
196 # -------------------------------
199 name: 'doctor-verify-installer-inspector-builders-macro'
201 - 'clean-workspace-log'
202 # yamllint disable rule:line-length
204 # NOTE: Create symbolic link, so that we can archive file outside
206 # NOTE: We are printing all logs under 'tests/' during test run,
207 # so this symbolic link should not be in 'tests/'. Otherwise,
208 # we'll have the same log twice in jenkins console log.
209 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
210 # NOTE: Get functest script in $WORKSPACE. This functest script is
211 # needed to perform VM image download in set-functest-env.sh
212 # from E release cycle.
214 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
215 - 'functest-suite-builder'
217 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
218 # NOTE: checking the test result, as the previous job could return
219 # 0 regardless the result of doctor test scenario.
220 grep -e 'doctor test successfully' $functest_log || exit 1
221 # yamllint enable rule:line-length
223 # -------------------------------
225 # -------------------------------
227 name: 'doctor-verify-publishers-macro'
230 artifacts: 'doctor_tests/*.log'
232 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
233 - email-jenkins-admins-on-failure
236 #####################################
238 #####################################
240 name: 'doctor-verify'
243 server-name: 'gerrit.opnfv.org'
245 - patchset-created-event:
246 exclude-drafts: 'false'
247 exclude-trivial-rebase: 'false'
248 exclude-no-code-change: 'false'
249 - draft-published-event
250 - comment-added-contains-event:
251 comment-contains-value: 'recheck'
252 - comment-added-contains-event:
253 comment-contains-value: 'reverify'
255 - project-compare-type: 'ANT'
256 project-pattern: '{project}'
258 - branch-compare-type: 'ANT'
259 branch-pattern: '**/{branch}'