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
231 name: 'functest-daily-{stream}'
235 # Job template for daily builders
237 # Required Variables:
238 # stream: branch with - in place of / (eg. stable)
239 # branch: branch (eg. stable)
241 project-type: freestyle
242 varsetabove: '{somevar}'
245 daysToKeep: '{build-days-to-keep}'
246 numToKeep: '{build-num-to-keep}'
247 artifactDaysToKeep: '{build-artifact-days-to-keep}'
248 artifactNumToKeep: '{build-artifact-num-to-keep}'
253 - functest-parameter:
254 gs-pathname: '{gs-pathname}'
258 credentials-id: '{ssh-credentials}'
263 - ssh-agent-credentials:
264 user: '{ssh-credentials}'
267 - 'functest-{stream}'
274 !include-raw ../opnfvdocs/docu-build.sh
280 name: 'functest-verify-{stream}'
284 project-type: freestyle
289 artifactDaysToKeep: -1
290 artifactNumToKeep: -1
298 - gerrit-trigger-scm:
299 credentials-id: '{ssh-credentials}'
300 refspec: '$GERRIT_REFSPEC'
301 choosing-strategy: 'gerrit'
304 - ssh-agent-credentials:
305 user: '{ssh-credentials}'
310 - patchset-created-event:
311 exclude-drafts: 'false'
312 exclude-trivial-rebase: 'false'
313 exclude-no-code-change: 'false'
314 - draft-published-event
315 - comment-added-contains-event:
316 comment-contains-value: 'recheck'
317 - comment-added-contains-event:
318 comment-contains-value: 'reverify'
320 - project-compare-type: 'ANT'
321 project-pattern: 'functest'
323 - branch-compare-type: 'ANT'
324 branch-pattern: '**/{branch}'
328 !include-raw ../opnfvdocs/docu-build.sh
331 name: 'functest-merge'
335 # builder-merge job to run JJB update
337 # This job's purpose is to update all the JJB
339 project-type: freestyle
344 artifactDaysToKeep: -1
354 - gerrit-trigger-scm:
355 credentials-id: '{ssh-credentials}'
357 choosing-strategy: 'default'
360 - ssh-agent-credentials:
361 user: '{ssh-credentials}'
366 - change-merged-event
367 - comment-added-contains-event:
368 comment-contains-value: 'remerge'
370 - project-compare-type: 'ANT'
371 project-pattern: 'functest'
373 - branch-compare-type: 'ANT'
374 branch-pattern: '**/master'
378 !include-raw ../opnfvdocs/docu-build.sh
380 ########################
382 ########################
384 name: functest-parameter
388 default: '{gs-pathname}'
389 description: "Version directory where the opnfv documents will be stored in gs repository"
391 ########################
393 ########################
395 name: 'functest-master'
397 - pollscm: "H 9 * * *"
400 name: 'functest-stable-arno'
402 - pollscm: "H 21 * * *"
412 echo "Functest: prepare Functest environment"
413 mkdir -p $HOME/functest/
414 source $HOME/functest/opnfv-openrc.sh
416 # WORKSPACE is the root of the functest repo
417 # go into WORKSPACE where the functest repo is cloned
421 echo "Functest: prepare Functest environment"
422 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
425 echo "Functest: run vPing"
426 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
429 echo "Functest: run ODL suite"
430 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
433 echo "Functest: run Functest Rally Bench suites"
434 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
437 echo "Functest: run Tempest suite"
438 rally verify start smoke
442 echo "Functest: copy results and clean Functest environment"
443 mkdir -p $HOME/functest/results
446 cp -Rf $WORSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
448 # save tempest.conf for further troubleshooting
449 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
451 # push results to artifact
452 !include-raw res-build.sh
455 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean