1 ###################################
2 # job configuration for functest
3 ###################################
10 installer_type: 'fuel'
11 installer_ip: '10.20.0.2'
14 installer_type: 'foreman'
15 installer_ip: '172.30.10.73'
19 installer_type: 'foreman'
20 installer_ip: '172.30.10.73'
23 - 'set-functest-env-{pod}'
25 - 'clean-functest-env-{pod}'
26 - 'set-functest-env-{installer}-{stream}'
27 - 'functest-{installer}-{stream}'
28 - 'clean-functest-env-{installer}-{stream}'
29 - 'functest-openstack-bench-test-{pod}'
30 - 'functest-openstack-tempest-smoke-test-{pod}'
31 - 'functest-odl-test-{pod}'
32 - 'functest-vims-test-{pod}'
33 - 'functest-vping-test-{pod}'
34 - 'functest-daily-{stream}'
35 - 'functest-merge-{stream}'
36 - 'functest-verify-{stream}'
38 # stream: branch with - in place of / (eg. stable-arno)
39 # branch: branch (eg. stable/arno)
50 ################################
52 ################################
54 name: set-functest-env-{pod}
56 project-type: freestyle
63 artifactDaysToKeep: -1
71 echo "Functest: prepare Functest environment"
72 mkdir -p $HOME/functest/
73 # source openstack vars
74 if [[ ! -f $HOME/opnfv-openrc.sh ]]; then
75 echo "Unable to access file $HOME/opnfv-openrc.sh"
78 source $HOME/opnfv-openrc.sh
80 # WORKSPACE is the root of the functest repo
81 # go into WORKSPACE where the functest repo is cloned
85 echo "Functest: prepare Functest environment"
86 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
89 name: clean-functest-env-{pod}
91 project-type: freestyle
98 artifactDaysToKeep: -1
107 echo "Functest: copy results and clean Functest environment"
108 mkdir -p $HOME/functest/results
111 cp -Rf $WORSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
113 # save tempest.conf for further troubleshooting
114 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
117 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean
120 name: set-functest-env-{installer}-{stream}
122 project-type: freestyle
129 artifactDaysToKeep: -1
130 artifactNumToKeep: -1
137 echo "Functest: prepare Functest environment"
138 mkdir -p $HOME/functest/
139 # source openstack vars
140 if [[ ! -f $HOME/opnfv-openrc.sh ]]; then
141 echo "Unable to access file $HOME/opnfv-openrc.sh"
144 source $HOME/opnfv-openrc.sh
146 # WORKSPACE is the root of the functest repo
147 # go into WORKSPACE where the functest repo is cloned
151 echo "Functest: prepare Functest environment"
152 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
155 name: clean-functest-env-{installer}-{stream}
157 project-type: freestyle
164 artifactDaysToKeep: -1
165 artifactNumToKeep: -1
173 echo "Functest: copy results and clean Functest environment"
174 mkdir -p $HOME/functest/results
177 cp -Rf $WORSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
179 # save tempest.conf for further troubleshooting
180 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
183 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean
186 name: functest-openstack-bench-test-{pod}
188 project-type: freestyle
195 artifactDaysToKeep: -1
196 artifactNumToKeep: -1
203 echo "Functest: run Functest Rally Bench suites"
204 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
207 name: functest-openstack-tempest-smoke-test-{pod}
209 project-type: freestyle
216 artifactDaysToKeep: -1
217 artifactNumToKeep: -1
225 echo "Functest: run Tempest suite"
226 rally verify start smoke
230 name: functest-odl-test-{pod}
232 project-type: freestyle
239 artifactDaysToKeep: -1
240 artifactNumToKeep: -1
247 echo "Functest: run ODL suite"
248 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
251 name: functest-vims-test-{pod}
253 project-type: freestyle
260 artifactDaysToKeep: -1
261 artifactNumToKeep: -1
265 echo "put your CI scenario here"
269 name: functest-vping-test-{pod}
271 project-type: freestyle
278 artifactDaysToKeep: -1
279 artifactNumToKeep: -1
287 echo "Functest: run vPing"
288 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
293 project-type: freestyle
302 default: '{installer_type}'
303 description: "Installer name that is used for deployment."
306 default: '{installer_ip}'
307 description: "Installer IP."
312 credentials-id: '{ssh-credentials}'
319 artifactDaysToKeep: -1
320 artifactNumToKeep: -1
323 - 'functest-fetch-os-creds'
325 - 'functest-store-results'
329 name: functest-{installer}-{stream}
331 project-type: freestyle
340 default: '{installer_type}'
341 description: "Installer name that is used for deployment."
344 default: '{installer_ip}'
345 description: "Installer IP."
348 default: ssh://gerrit.opnfv.org:29418/$PROJECT
349 description: "Override GIT_BASE"
353 credentials-id: '{ssh-credentials}'
360 artifactDaysToKeep: -1
361 artifactNumToKeep: -1
364 - 'functest-fetch-os-creds'
366 - 'functest-store-results'
370 name: 'functest-daily-{stream}'
374 # Job template for daily builders
376 # Required Variables:
377 # stream: branch with - in place of / (eg. stable)
378 # branch: branch (eg. stable)
380 project-type: freestyle
381 varsetabove: '{somevar}'
384 daysToKeep: '{build-days-to-keep}'
385 numToKeep: '{build-num-to-keep}'
386 artifactDaysToKeep: '{build-artifact-days-to-keep}'
387 artifactNumToKeep: '{build-artifact-num-to-keep}'
392 - functest-parameter:
393 gs-pathname: '{gs-pathname}'
397 credentials-id: '{ssh-credentials}'
402 - ssh-agent-credentials:
403 user: '{ssh-credentials}'
406 - 'functest-{stream}'
413 !include-raw ../opnfvdocs/docu-build.sh
419 name: 'functest-verify-{stream}'
423 project-type: freestyle
428 artifactDaysToKeep: -1
429 artifactNumToKeep: -1
437 - gerrit-trigger-scm:
438 credentials-id: '{ssh-credentials}'
439 refspec: '$GERRIT_REFSPEC'
440 choosing-strategy: 'gerrit'
443 - ssh-agent-credentials:
444 user: '{ssh-credentials}'
449 - patchset-created-event:
450 exclude-drafts: 'false'
451 exclude-trivial-rebase: 'false'
452 exclude-no-code-change: 'false'
453 - draft-published-event
454 - comment-added-contains-event:
455 comment-contains-value: 'recheck'
456 - comment-added-contains-event:
457 comment-contains-value: 'reverify'
459 - project-compare-type: 'ANT'
460 project-pattern: 'functest'
462 - branch-compare-type: 'ANT'
463 branch-pattern: '**/{branch}'
467 !include-raw ../opnfvdocs/docu-build.sh
470 name: 'functest-merge-{stream}'
474 # builder-merge job to run JJB update
476 # This job's purpose is to update all the JJB
478 project-type: freestyle
483 artifactDaysToKeep: -1
493 - gerrit-trigger-scm:
494 credentials-id: '{ssh-credentials}'
496 choosing-strategy: 'default'
499 - ssh-agent-credentials:
500 user: '{ssh-credentials}'
505 - change-merged-event
506 - comment-added-contains-event:
507 comment-contains-value: 'remerge'
509 - project-compare-type: 'ANT'
510 project-pattern: 'functest'
512 - branch-compare-type: 'ANT'
513 branch-pattern: '**/{branch}'
517 !include-raw ../opnfvdocs/docu-build.sh
519 ########################
521 ########################
523 name: functest-parameter
527 default: '{gs-pathname}'
528 description: "Version directory where the opnfv documents will be stored in gs repository"
535 default: https://gerrit.opnfv.org/gerrit/$PROJECT
536 description: "Override GIT_BASE"
543 default: ssh://gerrit.opnfv.org:29418/$PROJECT
544 description: "Override GIT_BASE"
551 default: ssh://gerrit.opnfv.org:29418/$PROJECT
552 description: "Override GIT_BASE"
553 ########################
555 ########################
557 name: 'functest-master'
559 - pollscm: "H 9 * * *"
562 name: 'functest-stable-arno'
564 - pollscm: "H 21 * * *"
566 ########################
568 ########################
577 echo "Functest: prepare Functest environment"
578 mkdir -p $HOME/functest/
579 source $HOME/functest/opnfv-openrc.sh
581 # WORKSPACE is the root of the functest repo
582 # go into WORKSPACE where the functest repo is cloned
586 echo "Functest: prepare Functest environment"
587 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
590 echo "Functest: run vPing"
591 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
594 echo "Functest: run ODL suite"
595 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
598 echo "Functest: run Functest Rally Bench suites"
599 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
602 echo "Functest: run Tempest suite"
603 rally verify start smoke
607 echo "Functest: copy results and clean Functest environment"
608 mkdir -p $HOME/functest/results
611 cp -Rf $WORKSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
613 # save tempest.conf for further troubleshooting
614 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
617 name: functest-store-results
620 !include-raw res-build.sh
623 name: functest-cleanup
630 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean
633 name: functest-fetch-os-creds
636 !include-raw ../../utils/fetch_os_creds.sh