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!"
71 name: 'doctor-verify-apex-inspector'
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
82 current-parameters: true
85 name: 'doctor-verify-fuel-inspector'
86 execution-type: PARALLEL
88 - name: 'doctor-verify-fuel-{inspector}-x86_64-{stream}'
89 predefined-parameters: |
91 GERRIT_BRANCH=$GERRIT_BRANCH
92 GERRIT_REFSPEC=$GERRIT_REFSPEC
93 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
94 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
95 kill-phase-on: FAILURE
96 current-parameters: true
99 name: 'doctor-verify-fuel-inspector'
100 execution-type: PARALLEL
102 - name: 'doctor-verify-fuel-{inspector}-aarch64-{stream}'
103 predefined-parameters: |
104 GERRIT_BRANCH=$GERRIT_BRANCH
105 GERRIT_REFSPEC=$GERRIT_REFSPEC
106 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
107 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
108 kill-phase-on: FAILURE
109 current-parameters: true
112 name: 'doctor-verify-daisy-inspector'
113 execution-type: PARALLEL
115 - name: 'doctor-verify-daisy-{inspector}-x86_64-{stream}'
116 predefined-parameters: |
118 GERRIT_BRANCH=$GERRIT_BRANCH
119 GERRIT_REFSPEC=$GERRIT_REFSPEC
120 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
121 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
122 kill-phase-on: FAILURE
123 current-parameters: true
127 name: 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
128 disabled: '{obj:disabled}'
129 node: 'doctor-{installer}-{arch}'
138 - '{installer}-defaults'
139 - 'doctor-slave-parameter'
141 - 'doctor-functest-parameter'
145 - 'doctor-verify-installer-inspector-builders-macro'
147 - 'doctor-verify-publishers-macro'
150 # -------------------------------
152 # -------------------------------
154 name: 'doctor-parameter'
158 default: /home/jenkins/openstack.creds
159 description: 'OpenStack credentials'
162 default: '{docker-tag}'
163 description: 'Tag to pull docker image'
165 name: CLEAN_DOCKER_IMAGES
167 description: 'Remove downloaded docker images (opnfv/functest:*)'
169 name: DEPLOY_SCENARIO
170 default: '{scenario}'
171 description: 'Scenario to deploy and test'
174 name: 'doctor-functest-parameter'
176 # functest-suite-parameter
181 name: FUNCTEST_SUITE_NAME
182 default: 'doctor-notification'
184 name: TESTCASE_OPTIONS
185 # yamllint disable rule:line-length
186 default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
187 # yamllint enable rule:line-length
188 description: 'Addtional parameters specific to test case(s)'
192 default: '{gs-pathname}'
193 # yamllint disable rule:line-length
194 description: "Version directory where the opnfv documents will be stored in gs repository"
195 # yamllint enable rule:line-length
197 name: FUNCTEST_REPO_DIR
198 default: "/home/opnfv/repos/functest"
199 description: "Directory where the Functest repository is cloned"
201 name: PUSH_RESULTS_TO_DB
203 description: "Push the results of all the tests to the resultDB"
207 description: "Show debug output information"
208 # -------------------------------
210 # -------------------------------
213 name: 'doctor-verify-installer-inspector-builders-macro'
215 - 'clean-workspace-log'
216 # yamllint disable rule:line-length
218 # NOTE: Create symbolic link, so that we can archive file outside
220 # NOTE: We are printing all logs under 'tests/' during test run,
221 # so this symbolic link should not be in 'tests/'. Otherwise,
222 # we'll have the same log twice in jenkins console log.
223 ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
224 # NOTE: Get functest script in $WORKSPACE. This functest script is
225 # needed to perform VM image download in set-functest-env.sh
226 # from E release cycle.
228 wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
229 - 'functest-suite-builder'
231 functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
232 # NOTE: checking the test result, as the previous job could return
233 # 0 regardless the result of doctor test scenario.
234 grep -e 'doctor test successfully' $functest_log || exit 1
235 # yamllint enable rule:line-length
237 # -------------------------------
239 # -------------------------------
241 name: 'doctor-verify-publishers-macro'
244 artifacts: 'doctor_tests/*.log'
246 artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
247 - email-jenkins-admins-on-failure
250 #####################################
252 #####################################
254 name: 'doctor-verify'
257 server-name: 'gerrit.opnfv.org'
259 - patchset-created-event:
260 exclude-drafts: 'false'
261 exclude-trivial-rebase: 'false'
262 exclude-no-code-change: 'false'
263 - draft-published-event
264 - comment-added-contains-event:
265 comment-contains-value: 'recheck'
266 - comment-added-contains-event:
267 comment-contains-value: 'reverify'
269 - project-compare-type: 'ANT'
270 project-pattern: '{project}'
272 - branch-compare-type: 'ANT'
273 branch-pattern: '**/{branch}'