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
219 credentials-id: '{ssh-credentials}'
226 artifactDaysToKeep: -1
227 artifactNumToKeep: -1
231 - 'functest-store-results'
235 name: 'functest-daily-{stream}'
239 # Job template for daily builders
241 # Required Variables:
242 # stream: branch with - in place of / (eg. stable)
243 # branch: branch (eg. stable)
245 project-type: freestyle
246 varsetabove: '{somevar}'
249 daysToKeep: '{build-days-to-keep}'
250 numToKeep: '{build-num-to-keep}'
251 artifactDaysToKeep: '{build-artifact-days-to-keep}'
252 artifactNumToKeep: '{build-artifact-num-to-keep}'
257 - functest-parameter:
258 gs-pathname: '{gs-pathname}'
262 credentials-id: '{ssh-credentials}'
267 - ssh-agent-credentials:
268 user: '{ssh-credentials}'
271 - 'functest-{stream}'
278 !include-raw ../opnfvdocs/docu-build.sh
284 name: 'functest-verify-{stream}'
288 project-type: freestyle
293 artifactDaysToKeep: -1
294 artifactNumToKeep: -1
302 - gerrit-trigger-scm:
303 credentials-id: '{ssh-credentials}'
304 refspec: '$GERRIT_REFSPEC'
305 choosing-strategy: 'gerrit'
308 - ssh-agent-credentials:
309 user: '{ssh-credentials}'
314 - patchset-created-event:
315 exclude-drafts: 'false'
316 exclude-trivial-rebase: 'false'
317 exclude-no-code-change: 'false'
318 - draft-published-event
319 - comment-added-contains-event:
320 comment-contains-value: 'recheck'
321 - comment-added-contains-event:
322 comment-contains-value: 'reverify'
324 - project-compare-type: 'ANT'
325 project-pattern: 'functest'
327 - branch-compare-type: 'ANT'
328 branch-pattern: '**/{branch}'
332 !include-raw ../opnfvdocs/docu-build.sh
335 name: 'functest-merge'
339 # builder-merge job to run JJB update
341 # This job's purpose is to update all the JJB
343 project-type: freestyle
348 artifactDaysToKeep: -1
358 - gerrit-trigger-scm:
359 credentials-id: '{ssh-credentials}'
361 choosing-strategy: 'default'
364 - ssh-agent-credentials:
365 user: '{ssh-credentials}'
370 - change-merged-event
371 - comment-added-contains-event:
372 comment-contains-value: 'remerge'
374 - project-compare-type: 'ANT'
375 project-pattern: 'functest'
377 - branch-compare-type: 'ANT'
378 branch-pattern: '**/master'
382 !include-raw ../opnfvdocs/docu-build.sh
384 ########################
386 ########################
388 name: functest-parameter
392 default: '{gs-pathname}'
393 description: "Version directory where the opnfv documents will be stored in gs repository"
400 default: https://gerrit.opnfv.org/gerrit/$PROJECT
401 description: "Override GIT_BASE"
408 default: ssh://gerrit.opnfv.org:29418/$PROJECT
409 description: "Override GIT_BASE"
416 default: ssh://gerrit.opnfv.org:29418/$PROJECT
417 description: "Override GIT_BASE"
418 ########################
420 ########################
422 name: 'functest-master'
424 - pollscm: "H 9 * * *"
427 name: 'functest-stable-arno'
429 - pollscm: "H 21 * * *"
431 ########################
433 ########################
442 echo "Functest: prepare Functest environment"
443 mkdir -p $HOME/functest/
444 source $HOME/functest/opnfv-openrc.sh
446 # WORKSPACE is the root of the functest repo
447 # go into WORKSPACE where the functest repo is cloned
451 echo "Functest: prepare Functest environment"
452 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
455 echo "Functest: run vPing"
456 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
459 echo "Functest: run ODL suite"
460 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
463 echo "Functest: run Functest Rally Bench suites"
464 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
467 echo "Functest: run Tempest suite"
468 rally verify start smoke
472 echo "Functest: copy results and clean Functest environment"
473 mkdir -p $HOME/functest/results
476 cp -Rf $WORKSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
478 # save tempest.conf for further troubleshooting
479 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
482 name: functest-store-results
485 !include-raw res-build.sh
488 name: functest-cleanup
495 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean