- project:
name: functest
+ pod:
+ - 'opnfv-jump-1'
+ - 'opnfv-jump-2'
jobs:
- - 'functest-vim_bench-test'
- - 'functest-vim_tempest-test'
+ - 'functest-{pod}'
+ - 'functest-openstack-bench-test'
+ - 'functest-openstack-tempest-smoke-test'
- 'functest-odl-test'
- 'functest-vims-test'
- 'functest-vping-test'
somevar: 'foo'
- job-template:
- name: functest-vim_bench-test
+ name: functest-openstack-bench-test
project-type: freestyle
- node: orange-build
+ node: opnfv-jump-2
logrotate:
daysToKeep: 30
builders:
- shell: |
- python run_rally.py keystone
+ python $HOME/.functest/run_rally.py all
- job-template:
- name: functest-vim_tempest-test
+ name: functest-openstack-tempest-smoke-test
project-type: freestyle
- node: orange-build
+ node: opnfv-jump-2
logrotate:
daysToKeep: 30
builders:
- shell: |
- rally verify start
+ rally verify start smoke
+ rally verify list
- job-template:
name: functest-odl-test
project-type: freestyle
- node: ericsson-build
+ node: opnfv-jump-2
logrotate:
daysToKeep: 30
project-type: freestyle
- node: ericsson-build
+ node: opnfv-jump-2
logrotate:
daysToKeep: 30
project-type: freestyle
+ node: opnfv-jump-2
+
logrotate:
daysToKeep: 30
numToKeep: 10
builders:
- shell: |
- echo "put your CI scenario here"
+ python $HOME/.functest/vPing/vPing.py
+
+- job-template:
+ name: functest-{pod}
+
+ project-type: freestyle
+ node: '{pod}'
+ parameters:
+ - project-parameter:
+ project: '{project}'
+
+ scm:
+ - git-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: ''
+ branch: master
+
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 10
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ builders:
+ - 'functest-all'
- job-template:
name: 'functest-daily-{stream}'
+ node: master
+
# Job template for daily builders
#
# Required Variables:
builders:
- shell:
- !include-raw build-docu.sh
- - shell: |
- /usr/local/bin/gsutil cp docs/*.pdf gs://artifacts.opnfv.org/functest/docs/
- /usr/local/bin/gsutil cp docs/*.html gs://artifacts.opnfv.org/functest/docs/
- /usr/local/bin/gsutil cp docs/release/*.pdf gs://artifacts.opnfv.org/opnfvdocs/docs/release/
- /usr/local/bin/gsutil cp docs/release/*.html gs://artifacts.opnfv.org/opnfvdocs/docs/release/
- /usr/local/bin/gsutil cp requirements/*.pdf gs://artifacts.opnfv.org/opnfvdocs/requirements/
- /usr/local/bin/gsutil cp requirements/*.html gs://artifacts.opnfv.org/opnfvdocs/requirements/
- /usr/local/bin/gsutil cp design_docs/*.pdf gs://artifacts.opnfv.org/opnfvdocs/design_docs/
- /usr/local/bin/gsutil cp design_docs/*.html gs://artifacts.opnfv.org/opnfvdocs/design_docs/
+ !include-raw docu-build.sh
postbuilders:
- test-macro
- job-template:
name: 'functest-verify'
+ node: master
+
project-type: freestyle
logrotate:
builders:
- shell:
- !include-raw build-docu.sh
+ !include-raw docu-verify.sh
- job-template:
name: 'functest-merge'
+ node: master
+
# builder-merge job to run JJB update
#
# This job's purpose is to update all the JJB
branch-pattern: '**/master'
builders:
- - shell:
- !include-raw build-docu.sh
+ - shell:
+ !include-raw docu-build.sh
+
+# macros
+- builder:
+ name: functest-all
+ builders:
- shell: |
- /usr/local/bin/gsutil cp docs/*.pdf gs://artifacts.opnfv.org/functest/docs/
- /usr/local/bin/gsutil cp docs/*.html gs://artifacts.opnfv.org/functest/docs/
- /usr/local/bin/gsutil cp docs/release/*.pdf gs://artifacts.opnfv.org/opnfvdocs/docs/release/
- /usr/local/bin/gsutil cp docs/release/*.html gs://artifacts.opnfv.org/opnfvdocs/docs/release/
- /usr/local/bin/gsutil cp requirements/*.pdf gs://artifacts.opnfv.org/opnfvdocs/requirements/
- /usr/local/bin/gsutil cp requirements/*.html gs://artifacts.opnfv.org/opnfvdocs/requirements/
- /usr/local/bin/gsutil cp design_docs/*.pdf gs://artifacts.opnfv.org/opnfvdocs/design_docs/
- /usr/local/bin/gsutil cp design_docs/*.html gs://artifacts.opnfv.org/opnfvdocs/design_docs/
+ echo "Functest: prepare Functest environment"
+ mkdir -p $HOME/functest/
+ source $HOME/functest/opnfv-openrc.sh
+
+ # WORKSPACE is the root of the functest repo
+ # go into WORKSPACE where the functest repo is cloned
+ cd $WORKSPACE
+
+ # prepare
+ echo "Functest: prepare Functest environment"
+ python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
+
+ # tempest
+ echo "Functest: run Tempest suite"
+ rally verify start smoke
+ rally verify list
+
+ # vPing
+ echo "Functest: run vPing"
+ python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
+
+ # rally
+ echo "Functest: run Functest Rally Bench suites"
+ python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
+
+ # ODL
+ echo "Functest: run ODL suite"
+ $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
+
+ # collect results
+ echo "Functest: copy results and clean Functest environment"
+ mkdir -p $HOME/functest/results
+
+ # save tempest.conf for further troubleshooting
+ cp $HOME/.rally/for-deployment-*/tempest.conf $HOME/functest/results
+ # cleanup
+ python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean