9 - 'functest-openstack-bench-test'
10 - 'functest-openstack-tempest-smoke-test'
12 - 'functest-vims-test'
13 - 'functest-vping-test'
14 - 'functest-daily-{stream}'
18 # stream: branch with - in place of / (eg. stable-helium)
19 # branch: branch (eg. stable/helium)
28 name: functest-openstack-bench-test
30 project-type: freestyle
37 artifactDaysToKeep: -1
42 python $HOME/.functest/run_rally.py all
45 name: functest-openstack-tempest-smoke-test
47 project-type: freestyle
54 artifactDaysToKeep: -1
59 rally verify start smoke
63 name: functest-odl-test
65 project-type: freestyle
72 artifactDaysToKeep: -1
77 echo "put your CI scenario here"
80 name: functest-vims-test
82 project-type: freestyle
89 artifactDaysToKeep: -1
94 echo "put your CI scenario here"
98 name: functest-vping-test
100 project-type: freestyle
107 artifactDaysToKeep: -1
108 artifactNumToKeep: -1
112 python $HOME/.functest/vPing/vPing.py
117 project-type: freestyle
127 credentials-id: '{ssh-credentials}'
134 artifactDaysToKeep: -1
135 artifactNumToKeep: -1
141 name: 'functest-daily-{stream}'
145 # Job template for daily builders
147 # Required Variables:
148 # stream: branch with - in place of / (eg. stable)
149 # branch: branch (eg. stable)
151 project-type: freestyle
152 varsetabove: '{somevar}'
155 daysToKeep: '{build-days-to-keep}'
156 numToKeep: '{build-num-to-keep}'
157 artifactDaysToKeep: '{build-artifact-days-to-keep}'
158 artifactNumToKeep: '{build-artifact-num-to-keep}'
166 credentials-id: '{ssh-credentials}'
171 - ssh-agent-credentials:
172 user: '{ssh-credentials}'
182 !include-raw docu-build.sh
188 name: 'functest-verify'
192 project-type: freestyle
197 artifactDaysToKeep: -1
198 artifactNumToKeep: -1
206 - gerrit-trigger-scm:
207 credentials-id: '{ssh-credentials}'
208 refspec: '$GERRIT_REFSPEC'
209 choosing-strategy: 'gerrit'
212 - ssh-agent-credentials:
213 user: '{ssh-credentials}'
218 - patchset-created-event:
219 exclude-drafts: 'false'
220 exclude-trivial-rebase: 'false'
221 exclude-no-code-change: 'false'
222 - draft-published-event
223 - comment-added-contains-event:
224 comment-contains-value: 'recheck'
225 - comment-added-contains-event:
226 comment-contains-value: 'reverify'
228 - project-compare-type: 'ANT'
229 project-pattern: 'functest'
231 - branch-compare-type: 'ANT'
232 branch-pattern: '**/master'
236 !include-raw docu-verify.sh
239 name: 'functest-merge'
243 # builder-merge job to run JJB update
245 # This job's purpose is to update all the JJB
247 project-type: freestyle
252 artifactDaysToKeep: -1
262 - gerrit-trigger-scm:
263 credentials-id: '{ssh-credentials}'
265 choosing-strategy: 'default'
268 - ssh-agent-credentials:
269 user: '{ssh-credentials}'
274 - change-merged-event
275 - comment-added-contains-event:
276 comment-contains-value: 'remerge'
278 - project-compare-type: 'ANT'
279 project-pattern: 'functest'
281 - branch-compare-type: 'ANT'
282 branch-pattern: '**/master'
286 !include-raw docu-build.sh
293 echo "Functest: prepare Functest environment"
294 mkdir -p $HOME/functest/
295 source $HOME/functest/opnfv-openrc.sh
297 # WORKSPACE is the root of the functest repo
298 # go into WORKSPACE where the functest repo is cloned
302 echo "Functest: prepare Functest environment"
303 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
306 echo "Functest: run Tempest suite"
307 rally verify start smoke
311 echo "Functest: run vPing"
312 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
315 echo "Functest: run Functest Rally Bench suites"
316 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
319 echo "Functest: run ODL suite"
320 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
323 echo "Functest: copy results and clean Functest environment"
324 mkdir -p $HOME/functest/results
326 # save tempest.conf for further troubleshooting
327 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
330 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean