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
123 credentials-id: '{ssh-credentials}'
130 artifactDaysToKeep: -1
131 artifactNumToKeep: -1
137 name: 'functest-daily-{stream}'
141 # Job template for daily builders
143 # Required Variables:
144 # stream: branch with - in place of / (eg. stable)
145 # branch: branch (eg. stable)
147 project-type: freestyle
148 varsetabove: '{somevar}'
151 daysToKeep: '{build-days-to-keep}'
152 numToKeep: '{build-num-to-keep}'
153 artifactDaysToKeep: '{build-artifact-days-to-keep}'
154 artifactNumToKeep: '{build-artifact-num-to-keep}'
162 credentials-id: '{ssh-credentials}'
167 - ssh-agent-credentials:
168 user: '{ssh-credentials}'
178 !include-raw docu-build.sh
184 name: 'functest-verify'
188 project-type: freestyle
193 artifactDaysToKeep: -1
194 artifactNumToKeep: -1
202 - gerrit-trigger-scm:
203 credentials-id: '{ssh-credentials}'
204 refspec: '$GERRIT_REFSPEC'
205 choosing-strategy: 'gerrit'
208 - ssh-agent-credentials:
209 user: '{ssh-credentials}'
214 - patchset-created-event:
215 exclude-drafts: 'false'
216 exclude-trivial-rebase: 'false'
217 exclude-no-code-change: 'false'
218 - draft-published-event
219 - comment-added-contains-event:
220 comment-contains-value: 'recheck'
221 - comment-added-contains-event:
222 comment-contains-value: 'reverify'
224 - project-compare-type: 'ANT'
225 project-pattern: 'functest'
227 - branch-compare-type: 'ANT'
228 branch-pattern: '**/master'
232 !include-raw docu-verify.sh
235 name: 'functest-merge'
239 # builder-merge job to run JJB update
241 # This job's purpose is to update all the JJB
243 project-type: freestyle
248 artifactDaysToKeep: -1
258 - gerrit-trigger-scm:
259 credentials-id: '{ssh-credentials}'
261 choosing-strategy: 'default'
264 - ssh-agent-credentials:
265 user: '{ssh-credentials}'
270 - change-merged-event
271 - comment-added-contains-event:
272 comment-contains-value: 'remerge'
274 - project-compare-type: 'ANT'
275 project-pattern: 'functest'
277 - branch-compare-type: 'ANT'
278 branch-pattern: '**/master'
282 !include-raw docu-build.sh
289 echo "Functest: prepare Functest environment"
290 mkdir -p $HOME/functest/
291 source $HOME/functest/opnfv-openrc.sh
293 # WORKSPACE is the root of the functest repo
294 # go into WORKSPACE where the functest repo is cloned
298 echo "Functest: prepare Functest environment"
299 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
302 echo "Functest: run Tempest suite"
303 rally verify start smoke
307 echo "Functest: run vPing"
308 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
311 echo "Functest: run Functest Rally Bench suites"
312 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
315 echo "Functest: run ODL suite"
316 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
319 echo "Functest: copy results and clean Functest environment"
320 mkdir -p $HOME/functest/results
322 # save tempest.conf for further troubleshooting
323 cp $HOME/.rally/for-deployment-*/tempest.conf $HOME/functest/results
326 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean