1 ###################################
2 # job configuration for functest
3 ###################################
13 - 'set-functest-env-{pod}'
14 - 'clean-functest-env-{pod}'
15 - 'functest-openstack-bench-test-{pod}'
16 - 'functest-openstack-tempest-smoke-test-{pod}'
17 - 'functest-odl-test-{pod}'
18 - 'functest-vims-test-{pod}'
19 - 'functest-vping-test-{pod}'
20 - 'functest-daily-{stream}'
22 - 'functest-verify-{stream}'
24 # stream: branch with - in place of / (eg. stable-arno)
25 # branch: branch (eg. stable/arno)
36 ################################
38 ################################
40 name: set-functest-env-{pod}
42 project-type: freestyle
49 artifactDaysToKeep: -1
57 echo "Functest: prepare Functest environment"
58 mkdir -p $HOME/functest/
59 source $HOME/functest/opnfv-openrc.sh
61 # WORKSPACE is the root of the functest repo
62 # go into WORKSPACE where the functest repo is cloned
66 echo "Functest: prepare Functest environment"
67 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
70 name: clean-functest-env-{pod}
72 project-type: freestyle
79 artifactDaysToKeep: -1
88 echo "Functest: copy results and clean Functest environment"
89 mkdir -p $HOME/functest/results
92 cp -Rf $WORSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
94 # save tempest.conf for further troubleshooting
95 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
98 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean
101 name: functest-openstack-bench-test-{pod}
103 project-type: freestyle
110 artifactDaysToKeep: -1
111 artifactNumToKeep: -1
118 echo "Functest: run Functest Rally Bench suites"
119 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
122 name: functest-openstack-tempest-smoke-test-{pod}
124 project-type: freestyle
131 artifactDaysToKeep: -1
132 artifactNumToKeep: -1
140 echo "Functest: run Tempest suite"
141 rally verify start smoke
145 name: functest-odl-test-{pod}
147 project-type: freestyle
154 artifactDaysToKeep: -1
155 artifactNumToKeep: -1
162 echo "Functest: run ODL suite"
163 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
166 name: functest-vims-test-{pod}
168 project-type: freestyle
175 artifactDaysToKeep: -1
176 artifactNumToKeep: -1
180 echo "put your CI scenario here"
184 name: functest-vping-test-{pod}
186 project-type: freestyle
193 artifactDaysToKeep: -1
194 artifactNumToKeep: -1
202 echo "Functest: run vPing"
203 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
208 project-type: freestyle
218 credentials-id: '{ssh-credentials}'
225 artifactDaysToKeep: -1
226 artifactNumToKeep: -1
230 - 'functest-store-results'
234 name: 'functest-daily-{stream}'
238 # Job template for daily builders
240 # Required Variables:
241 # stream: branch with - in place of / (eg. stable)
242 # branch: branch (eg. stable)
244 project-type: freestyle
245 varsetabove: '{somevar}'
248 daysToKeep: '{build-days-to-keep}'
249 numToKeep: '{build-num-to-keep}'
250 artifactDaysToKeep: '{build-artifact-days-to-keep}'
251 artifactNumToKeep: '{build-artifact-num-to-keep}'
256 - functest-parameter:
257 gs-pathname: '{gs-pathname}'
261 credentials-id: '{ssh-credentials}'
266 - ssh-agent-credentials:
267 user: '{ssh-credentials}'
270 - 'functest-{stream}'
277 !include-raw ../opnfvdocs/docu-build.sh
283 name: 'functest-verify-{stream}'
287 project-type: freestyle
292 artifactDaysToKeep: -1
293 artifactNumToKeep: -1
301 - gerrit-trigger-scm:
302 credentials-id: '{ssh-credentials}'
303 refspec: '$GERRIT_REFSPEC'
304 choosing-strategy: 'gerrit'
307 - ssh-agent-credentials:
308 user: '{ssh-credentials}'
313 - patchset-created-event:
314 exclude-drafts: 'false'
315 exclude-trivial-rebase: 'false'
316 exclude-no-code-change: 'false'
317 - draft-published-event
318 - comment-added-contains-event:
319 comment-contains-value: 'recheck'
320 - comment-added-contains-event:
321 comment-contains-value: 'reverify'
323 - project-compare-type: 'ANT'
324 project-pattern: 'functest'
326 - branch-compare-type: 'ANT'
327 branch-pattern: '**/{branch}'
331 !include-raw ../opnfvdocs/docu-build.sh
334 name: 'functest-merge'
338 # builder-merge job to run JJB update
340 # This job's purpose is to update all the JJB
342 project-type: freestyle
347 artifactDaysToKeep: -1
357 - gerrit-trigger-scm:
358 credentials-id: '{ssh-credentials}'
360 choosing-strategy: 'default'
363 - ssh-agent-credentials:
364 user: '{ssh-credentials}'
369 - change-merged-event
370 - comment-added-contains-event:
371 comment-contains-value: 'remerge'
373 - project-compare-type: 'ANT'
374 project-pattern: 'functest'
376 - branch-compare-type: 'ANT'
377 branch-pattern: '**/master'
381 !include-raw ../opnfvdocs/docu-build.sh
383 ########################
385 ########################
387 name: functest-parameter
391 default: '{gs-pathname}'
392 description: "Version directory where the opnfv documents will be stored in gs repository"
394 ########################
396 ########################
398 name: 'functest-master'
400 - pollscm: "H 9 * * *"
403 name: 'functest-stable-arno'
405 - pollscm: "H 21 * * *"
415 echo "Functest: prepare Functest environment"
416 mkdir -p $HOME/functest/
417 source $HOME/functest/opnfv-openrc.sh
419 # WORKSPACE is the root of the functest repo
420 # go into WORKSPACE where the functest repo is cloned
424 echo "Functest: prepare Functest environment"
425 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
428 echo "Functest: run vPing"
429 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
432 echo "Functest: run ODL suite"
433 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
436 echo "Functest: run Functest Rally Bench suites"
437 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
440 echo "Functest: run Tempest suite"
441 rally verify start smoke
445 echo "Functest: copy results and clean Functest environment"
446 mkdir -p $HOME/functest/results
449 cp -Rf $WORKSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
451 # save tempest.conf for further troubleshooting
452 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
455 name: functest-store-results
458 !include-raw res-build.sh
461 name: functest-cleanup
468 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean