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 # source openstack vars
118 source $HOME/opnfv-openrc.sh
119 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean
122 name: set-functest-env-{installer}-{stream}
124 project-type: freestyle
131 artifactDaysToKeep: -1
132 artifactNumToKeep: -1
139 echo "Functest: prepare Functest environment"
140 mkdir -p $HOME/functest/
141 # source openstack vars
142 if [[ ! -f $HOME/opnfv-openrc.sh ]]; then
143 echo "Unable to access file $HOME/opnfv-openrc.sh"
146 source $HOME/opnfv-openrc.sh
148 # WORKSPACE is the root of the functest repo
149 # go into WORKSPACE where the functest repo is cloned
153 echo "Functest: prepare Functest environment"
154 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
157 name: clean-functest-env-{installer}-{stream}
159 project-type: freestyle
166 artifactDaysToKeep: -1
167 artifactNumToKeep: -1
175 echo "Functest: copy results and clean Functest environment"
176 mkdir -p $HOME/functest/results
179 cp -Rf $WORSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
181 # save tempest.conf for further troubleshooting
182 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
185 # source openstack vars
186 source $HOME/opnfv-openrc.sh
187 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean
190 name: functest-openstack-bench-test-{pod}
192 project-type: freestyle
199 artifactDaysToKeep: -1
200 artifactNumToKeep: -1
207 echo "Functest: run Functest Rally Bench suites"
208 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
211 name: functest-openstack-tempest-smoke-test-{pod}
213 project-type: freestyle
220 artifactDaysToKeep: -1
221 artifactNumToKeep: -1
229 echo "Functest: run Tempest suite"
230 rally verify start smoke
234 name: functest-odl-test-{pod}
236 project-type: freestyle
243 artifactDaysToKeep: -1
244 artifactNumToKeep: -1
251 echo "Functest: run ODL suite"
252 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
255 name: functest-vims-test-{pod}
257 project-type: freestyle
264 artifactDaysToKeep: -1
265 artifactNumToKeep: -1
269 echo "put your CI scenario here"
273 name: functest-vping-test-{pod}
275 project-type: freestyle
282 artifactDaysToKeep: -1
283 artifactNumToKeep: -1
291 echo "Functest: run vPing"
292 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/ -r
297 project-type: freestyle
306 default: '{installer_type}'
307 description: "Installer name that is used for deployment."
310 default: '{installer_ip}'
311 description: "Installer IP."
316 credentials-id: '{ssh-credentials}'
323 artifactDaysToKeep: -1
324 artifactNumToKeep: -1
327 - 'functest-fetch-os-creds'
329 - 'functest-store-results'
333 name: functest-{installer}-{stream}
335 project-type: freestyle
344 default: '{installer_type}'
345 description: "Installer name that is used for deployment."
348 default: '{installer_ip}'
349 description: "Installer IP."
352 default: ssh://gerrit.opnfv.org:29418/$PROJECT
353 description: "Override GIT_BASE"
357 credentials-id: '{ssh-credentials}'
364 artifactDaysToKeep: -1
365 artifactNumToKeep: -1
368 - 'functest-fetch-os-creds'
370 - 'functest-store-results'
374 name: 'functest-daily-{stream}'
378 # Job template for daily builders
380 # Required Variables:
381 # stream: branch with - in place of / (eg. stable)
382 # branch: branch (eg. stable)
384 project-type: freestyle
385 varsetabove: '{somevar}'
388 daysToKeep: '{build-days-to-keep}'
389 numToKeep: '{build-num-to-keep}'
390 artifactDaysToKeep: '{build-artifact-days-to-keep}'
391 artifactNumToKeep: '{build-artifact-num-to-keep}'
396 - functest-parameter:
397 gs-pathname: '{gs-pathname}'
401 credentials-id: '{ssh-credentials}'
406 - ssh-agent-credentials:
407 user: '{ssh-credentials}'
410 - 'functest-{stream}'
417 !include-raw ../opnfvdocs/docu-build.sh
423 name: 'functest-verify-{stream}'
427 project-type: freestyle
432 artifactDaysToKeep: -1
433 artifactNumToKeep: -1
441 - gerrit-trigger-scm:
442 credentials-id: '{ssh-credentials}'
443 refspec: '$GERRIT_REFSPEC'
444 choosing-strategy: 'gerrit'
447 - ssh-agent-credentials:
448 user: '{ssh-credentials}'
453 - patchset-created-event:
454 exclude-drafts: 'false'
455 exclude-trivial-rebase: 'false'
456 exclude-no-code-change: 'false'
457 - draft-published-event
458 - comment-added-contains-event:
459 comment-contains-value: 'recheck'
460 - comment-added-contains-event:
461 comment-contains-value: 'reverify'
463 - project-compare-type: 'ANT'
464 project-pattern: 'functest'
466 - branch-compare-type: 'ANT'
467 branch-pattern: '**/{branch}'
471 !include-raw ../opnfvdocs/docu-build.sh
474 name: 'functest-merge-{stream}'
478 # builder-merge job to run JJB update
480 # This job's purpose is to update all the JJB
482 project-type: freestyle
487 artifactDaysToKeep: -1
497 - gerrit-trigger-scm:
498 credentials-id: '{ssh-credentials}'
500 choosing-strategy: 'default'
503 - ssh-agent-credentials:
504 user: '{ssh-credentials}'
509 - change-merged-event
510 - comment-added-contains-event:
511 comment-contains-value: 'remerge'
513 - project-compare-type: 'ANT'
514 project-pattern: 'functest'
516 - branch-compare-type: 'ANT'
517 branch-pattern: '**/{branch}'
521 !include-raw ../opnfvdocs/docu-build.sh
523 ########################
525 ########################
527 name: functest-parameter
531 default: '{gs-pathname}'
532 description: "Version directory where the opnfv documents will be stored in gs repository"
539 default: https://gerrit.opnfv.org/gerrit/$PROJECT
540 description: "Override GIT_BASE"
547 default: ssh://gerrit.opnfv.org:29418/$PROJECT
548 description: "Override GIT_BASE"
555 default: ssh://gerrit.opnfv.org:29418/$PROJECT
556 description: "Override GIT_BASE"
557 ########################
559 ########################
561 name: 'functest-master'
563 - pollscm: "H 9 * * *"
566 name: 'functest-stable-arno'
568 - pollscm: "H 21 * * *"
570 ########################
572 ########################
581 echo "Functest: prepare Functest environment"
582 mkdir -p $HOME/functest/
584 # source openstack vars
585 source $HOME/opnfv-openrc.sh
587 # WORKSPACE is the root of the functest repo
588 # go into WORKSPACE where the functest repo is cloned
592 echo "Functest: prepare Functest environment"
593 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
599 echo "Functest: run vPing"
600 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/ -r
603 echo "Functest: run ODL suite"
604 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
607 echo "Functest: run Functest Rally Bench suites"
608 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
611 echo "Functest: run Tempest suite"
612 rally verify start smoke
616 echo "Functest: copy results and clean Functest environment"
617 mkdir -p $HOME/functest/results
620 cp -Rf $WORKSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
622 # save tempest.conf for further troubleshooting
623 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
626 name: functest-store-results
629 !include-raw res-build.sh
632 name: functest-cleanup
639 source $HOME/opnfv-openrc.sh
640 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean
643 name: functest-fetch-os-creds
646 !include-raw ../../utils/fetch_os_creds.sh