1 ###################################
2 # job configuration for functest
3 ###################################
12 - 'set-functest-env-{pod}'
13 - 'clean-functest-env-{pod}'
14 - 'functest-openstack-bench-test-{pod}'
15 - 'functest-openstack-tempest-smoke-test-{pod}'
16 - 'functest-odl-test-{pod}'
17 - 'functest-vims-test-{pod}'
18 - 'functest-vping-test-{pod}'
19 - 'functest-daily-master'
21 - 'functest-verify-{stream}'
23 # stream: branch with - in place of / (eg. stable-arno)
24 # branch: branch (eg. stable/arno)
33 ################################
35 ################################
37 name: set-functest-env-{pod}
39 project-type: freestyle
46 artifactDaysToKeep: -1
54 echo "Functest: prepare Functest environment"
55 mkdir -p $HOME/functest/
56 source $HOME/functest/opnfv-openrc.sh
58 # WORKSPACE is the root of the functest repo
59 # go into WORKSPACE where the functest repo is cloned
63 echo "Functest: prepare Functest environment"
64 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
67 name: clean-functest-env-{pod}
69 project-type: freestyle
76 artifactDaysToKeep: -1
85 echo "Functest: copy results and clean Functest environment"
86 mkdir -p $HOME/functest/results
89 cp -Rf $WORSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
91 # save tempest.conf for further troubleshooting
92 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
95 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean
98 name: functest-openstack-bench-test-{pod}
100 project-type: freestyle
107 artifactDaysToKeep: -1
108 artifactNumToKeep: -1
115 echo "Functest: run Functest Rally Bench suites"
116 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
119 name: functest-openstack-tempest-smoke-test-{pod}
121 project-type: freestyle
128 artifactDaysToKeep: -1
129 artifactNumToKeep: -1
137 echo "Functest: run Tempest suite"
138 rally verify start smoke
142 name: functest-odl-test-{pod}
144 project-type: freestyle
151 artifactDaysToKeep: -1
152 artifactNumToKeep: -1
159 echo "Functest: run ODL suite"
160 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
163 name: functest-vims-test-{pod}
165 project-type: freestyle
172 artifactDaysToKeep: -1
173 artifactNumToKeep: -1
177 echo "put your CI scenario here"
181 name: functest-vping-test-{pod}
183 project-type: freestyle
190 artifactDaysToKeep: -1
191 artifactNumToKeep: -1
199 echo "Functest: run vPing"
200 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
205 project-type: freestyle
215 credentials-id: '{ssh-credentials}'
222 artifactDaysToKeep: -1
223 artifactNumToKeep: -1
229 name: 'functest-daily-master'
233 # Job template for daily builders
235 # Required Variables:
236 # stream: branch with - in place of / (eg. stable)
237 # branch: branch (eg. stable)
239 project-type: freestyle
240 varsetabove: '{somevar}'
243 daysToKeep: '{build-days-to-keep}'
244 numToKeep: '{build-num-to-keep}'
245 artifactDaysToKeep: '{build-artifact-days-to-keep}'
246 artifactNumToKeep: '{build-artifact-num-to-keep}'
254 credentials-id: '{ssh-credentials}'
259 - ssh-agent-credentials:
260 user: '{ssh-credentials}'
270 !include-raw docu-build.sh
276 name: 'functest-verify-{stream}'
280 project-type: freestyle
285 artifactDaysToKeep: -1
286 artifactNumToKeep: -1
294 - gerrit-trigger-scm:
295 credentials-id: '{ssh-credentials}'
296 refspec: '$GERRIT_REFSPEC'
297 choosing-strategy: 'gerrit'
300 - ssh-agent-credentials:
301 user: '{ssh-credentials}'
306 - patchset-created-event:
307 exclude-drafts: 'false'
308 exclude-trivial-rebase: 'false'
309 exclude-no-code-change: 'false'
310 - draft-published-event
311 - comment-added-contains-event:
312 comment-contains-value: 'recheck'
313 - comment-added-contains-event:
314 comment-contains-value: 'reverify'
316 - project-compare-type: 'ANT'
317 project-pattern: 'functest'
319 - branch-compare-type: 'ANT'
320 branch-pattern: '**/{branch}'
324 !include-raw docu-build.sh
327 name: 'functest-merge'
331 # builder-merge job to run JJB update
333 # This job's purpose is to update all the JJB
335 project-type: freestyle
340 artifactDaysToKeep: -1
350 - gerrit-trigger-scm:
351 credentials-id: '{ssh-credentials}'
353 choosing-strategy: 'default'
356 - ssh-agent-credentials:
357 user: '{ssh-credentials}'
362 - change-merged-event
363 - comment-added-contains-event:
364 comment-contains-value: 'remerge'
366 - project-compare-type: 'ANT'
367 project-pattern: 'functest'
369 - branch-compare-type: 'ANT'
370 branch-pattern: '**/master'
374 !include-raw docu-build.sh
384 echo "Functest: prepare Functest environment"
385 mkdir -p $HOME/functest/
386 source $HOME/functest/opnfv-openrc.sh
388 # WORKSPACE is the root of the functest repo
389 # go into WORKSPACE where the functest repo is cloned
393 echo "Functest: prepare Functest environment"
394 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
397 echo "Functest: run vPing"
398 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
401 echo "Functest: run ODL suite"
402 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
405 echo "Functest: run Functest Rally Bench suites"
406 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
409 echo "Functest: run Tempest suite"
410 rally verify start smoke
414 echo "Functest: copy results and clean Functest environment"
415 mkdir -p $HOME/functest/results
418 cp -Rf $WORSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
420 # save tempest.conf for further troubleshooting
421 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
423 # push results to artifact
424 !include-raw res-build.sh
427 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean