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-{stream}'
21 - 'functest-verify-{stream}'
23 # stream: branch with - in place of / (eg. stable-arno)
24 # branch: branch (eg. stable/arno)
35 ################################
37 ################################
39 name: set-functest-env-{pod}
41 project-type: freestyle
48 artifactDaysToKeep: -1
56 echo "Functest: prepare Functest environment"
57 mkdir -p $HOME/functest/
58 source $HOME/functest/opnfv-openrc.sh
60 # WORKSPACE is the root of the functest repo
61 # go into WORKSPACE where the functest repo is cloned
65 echo "Functest: prepare Functest environment"
66 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
69 name: clean-functest-env-{pod}
71 project-type: freestyle
78 artifactDaysToKeep: -1
87 echo "Functest: copy results and clean Functest environment"
88 mkdir -p $HOME/functest/results
91 cp -Rf $WORSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
93 # save tempest.conf for further troubleshooting
94 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
97 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean
100 name: functest-openstack-bench-test-{pod}
102 project-type: freestyle
109 artifactDaysToKeep: -1
110 artifactNumToKeep: -1
117 echo "Functest: run Functest Rally Bench suites"
118 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
121 name: functest-openstack-tempest-smoke-test-{pod}
123 project-type: freestyle
130 artifactDaysToKeep: -1
131 artifactNumToKeep: -1
139 echo "Functest: run Tempest suite"
140 rally verify start smoke
144 name: functest-odl-test-{pod}
146 project-type: freestyle
153 artifactDaysToKeep: -1
154 artifactNumToKeep: -1
161 echo "Functest: run ODL suite"
162 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
165 name: functest-vims-test-{pod}
167 project-type: freestyle
174 artifactDaysToKeep: -1
175 artifactNumToKeep: -1
179 echo "put your CI scenario here"
183 name: functest-vping-test-{pod}
185 project-type: freestyle
192 artifactDaysToKeep: -1
193 artifactNumToKeep: -1
201 echo "Functest: run vPing"
202 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
207 project-type: freestyle
217 credentials-id: '{ssh-credentials}'
224 artifactDaysToKeep: -1
225 artifactNumToKeep: -1
229 - 'functest-store-results'
233 name: 'functest-daily-{stream}'
237 # Job template for daily builders
239 # Required Variables:
240 # stream: branch with - in place of / (eg. stable)
241 # branch: branch (eg. stable)
243 project-type: freestyle
244 varsetabove: '{somevar}'
247 daysToKeep: '{build-days-to-keep}'
248 numToKeep: '{build-num-to-keep}'
249 artifactDaysToKeep: '{build-artifact-days-to-keep}'
250 artifactNumToKeep: '{build-artifact-num-to-keep}'
255 - functest-parameter:
256 gs-pathname: '{gs-pathname}'
260 credentials-id: '{ssh-credentials}'
265 - ssh-agent-credentials:
266 user: '{ssh-credentials}'
269 - 'functest-{stream}'
276 !include-raw ../opnfvdocs/docu-build.sh
282 name: 'functest-verify-{stream}'
286 project-type: freestyle
291 artifactDaysToKeep: -1
292 artifactNumToKeep: -1
300 - gerrit-trigger-scm:
301 credentials-id: '{ssh-credentials}'
302 refspec: '$GERRIT_REFSPEC'
303 choosing-strategy: 'gerrit'
306 - ssh-agent-credentials:
307 user: '{ssh-credentials}'
312 - patchset-created-event:
313 exclude-drafts: 'false'
314 exclude-trivial-rebase: 'false'
315 exclude-no-code-change: 'false'
316 - draft-published-event
317 - comment-added-contains-event:
318 comment-contains-value: 'recheck'
319 - comment-added-contains-event:
320 comment-contains-value: 'reverify'
322 - project-compare-type: 'ANT'
323 project-pattern: 'functest'
325 - branch-compare-type: 'ANT'
326 branch-pattern: '**/{branch}'
330 !include-raw ../opnfvdocs/docu-build.sh
333 name: 'functest-merge'
337 # builder-merge job to run JJB update
339 # This job's purpose is to update all the JJB
341 project-type: freestyle
346 artifactDaysToKeep: -1
356 - gerrit-trigger-scm:
357 credentials-id: '{ssh-credentials}'
359 choosing-strategy: 'default'
362 - ssh-agent-credentials:
363 user: '{ssh-credentials}'
368 - change-merged-event
369 - comment-added-contains-event:
370 comment-contains-value: 'remerge'
372 - project-compare-type: 'ANT'
373 project-pattern: 'functest'
375 - branch-compare-type: 'ANT'
376 branch-pattern: '**/master'
380 !include-raw ../opnfvdocs/docu-build.sh
382 ########################
384 ########################
386 name: functest-parameter
390 default: '{gs-pathname}'
391 description: "Version directory where the opnfv documents will be stored in gs repository"
393 ########################
395 ########################
397 name: 'functest-master'
399 - pollscm: "H 9 * * *"
402 name: 'functest-stable-arno'
404 - pollscm: "H 21 * * *"
414 echo "Functest: prepare Functest environment"
415 mkdir -p $HOME/functest/
416 source $HOME/functest/opnfv-openrc.sh
418 # WORKSPACE is the root of the functest repo
419 # go into WORKSPACE where the functest repo is cloned
423 echo "Functest: prepare Functest environment"
424 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
427 echo "Functest: run vPing"
428 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
431 echo "Functest: run ODL suite"
432 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
435 echo "Functest: run Functest Rally Bench suites"
436 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
439 echo "Functest: run Tempest suite"
440 rally verify start smoke
444 echo "Functest: copy results and clean Functest environment"
445 mkdir -p $HOME/functest/results
448 cp -Rf $WORSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
450 # save tempest.conf for further troubleshooting
451 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
454 name: functest-store-results
457 !include-raw res-build.sh
460 name: functest-cleanup
468 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean