1 ###################################
2 # job configuration for functest
3 ###################################
12 - 'functest-openstack-bench-test'
13 - 'functest-openstack-tempest-smoke-test'
15 - 'functest-vims-test'
16 - 'functest-vping-test'
17 - 'functest-daily-master'
19 - 'functest-verify-{stream}'
21 # stream: branch with - in place of / (eg. stable-arno)
22 # branch: branch (eg. stable/arno)
31 ################################
33 ################################
35 name: functest-openstack-bench-test
37 project-type: freestyle
44 artifactDaysToKeep: -1
49 python $HOME/.functest/run_rally.py all
52 name: functest-openstack-tempest-smoke-test
54 project-type: freestyle
61 artifactDaysToKeep: -1
66 rally verify start smoke
70 name: functest-odl-test
72 project-type: freestyle
79 artifactDaysToKeep: -1
84 echo "put your CI scenario here"
87 name: functest-vims-test
89 project-type: freestyle
96 artifactDaysToKeep: -1
101 echo "put your CI scenario here"
105 name: functest-vping-test
107 project-type: freestyle
114 artifactDaysToKeep: -1
115 artifactNumToKeep: -1
119 python $HOME/.functest/vPing/vPing.py
124 project-type: freestyle
134 credentials-id: '{ssh-credentials}'
141 artifactDaysToKeep: -1
142 artifactNumToKeep: -1
148 name: 'functest-daily-master'
152 # Job template for daily builders
154 # Required Variables:
155 # stream: branch with - in place of / (eg. stable)
156 # branch: branch (eg. stable)
158 project-type: freestyle
159 varsetabove: '{somevar}'
162 daysToKeep: '{build-days-to-keep}'
163 numToKeep: '{build-num-to-keep}'
164 artifactDaysToKeep: '{build-artifact-days-to-keep}'
165 artifactNumToKeep: '{build-artifact-num-to-keep}'
173 credentials-id: '{ssh-credentials}'
178 - ssh-agent-credentials:
179 user: '{ssh-credentials}'
189 !include-raw docu-build.sh
195 name: 'functest-verify-{stream}'
199 project-type: freestyle
204 artifactDaysToKeep: -1
205 artifactNumToKeep: -1
213 - gerrit-trigger-scm:
214 credentials-id: '{ssh-credentials}'
215 refspec: '$GERRIT_REFSPEC'
216 choosing-strategy: 'gerrit'
219 - ssh-agent-credentials:
220 user: '{ssh-credentials}'
225 - patchset-created-event:
226 exclude-drafts: 'false'
227 exclude-trivial-rebase: 'false'
228 exclude-no-code-change: 'false'
229 - draft-published-event
230 - comment-added-contains-event:
231 comment-contains-value: 'recheck'
232 - comment-added-contains-event:
233 comment-contains-value: 'reverify'
235 - project-compare-type: 'ANT'
236 project-pattern: 'functest'
238 - branch-compare-type: 'ANT'
239 branch-pattern: '**/{branch}'
243 !include-raw docu-verify.sh
246 name: 'functest-merge'
250 # builder-merge job to run JJB update
252 # This job's purpose is to update all the JJB
254 project-type: freestyle
259 artifactDaysToKeep: -1
269 - gerrit-trigger-scm:
270 credentials-id: '{ssh-credentials}'
272 choosing-strategy: 'default'
275 - ssh-agent-credentials:
276 user: '{ssh-credentials}'
281 - change-merged-event
282 - comment-added-contains-event:
283 comment-contains-value: 'remerge'
285 - project-compare-type: 'ANT'
286 project-pattern: 'functest'
288 - branch-compare-type: 'ANT'
289 branch-pattern: '**/master'
293 !include-raw docu-build.sh
303 echo "Functest: prepare Functest environment"
304 mkdir -p $HOME/functest/
305 source $HOME/functest/opnfv-openrc.sh
307 # WORKSPACE is the root of the functest repo
308 # go into WORKSPACE where the functest repo is cloned
312 echo "Functest: prepare Functest environment"
313 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
316 echo "Functest: run vPing"
317 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
320 echo "Functest: run ODL suite"
321 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
324 echo "Functest: run Tempest suite"
325 rally verify start smoke
329 echo "Functest: run Functest Rally Bench suites"
330 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
333 echo "Functest: copy results and clean Functest environment"
334 mkdir -p $HOME/functest/results
336 # save tempest.conf for further troubleshooting
337 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
340 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean