diff options
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/functest/functest.yml | 81 |
1 files changed, 61 insertions, 20 deletions
diff --git a/jjb/functest/functest.yml b/jjb/functest/functest.yml index 78c2ac714..139d102c3 100644 --- a/jjb/functest/functest.yml +++ b/jjb/functest/functest.yml @@ -29,7 +29,7 @@ - 'functest-openstack-bench-test-{pod}' - 'functest-openstack-tempest-smoke-test-{pod}' - 'functest-odl-test-{pod}' - - 'functest-vims-test-{installer}-{stream}' + - 'functest-vims-{installer}-{stream}' - 'functest-vping-test-{pod}' - 'functest-daily-{stream}' - 'functest-merge-{stream}' @@ -252,7 +252,7 @@ $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh - job-template: - name: functest-vims-test-{installer}-{stream} + name: functest-vping-test-{pod} project-type: freestyle @@ -268,18 +268,37 @@ - shell: | #!/bin/bash set +e - # vIMS - echo "Functest: run vIMS" - python $WORKSPACE/testcases/vIMS/CI/vIMS.py --debug $WORKSPACE/ + # vPing + echo "Functest: run vPing" + python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/ -r - job-template: - name: functest-vping-test-{pod} + name: functest-{pod} project-type: freestyle node: '{pod}' + parameters: + - project-parameter: + project: '{project}' + - string: + name: INSTALLER_TYPE + default: '{installer_type}' + description: "Installer name that is used for deployment." + - string: + name: INSTALLER_IP + default: '{installer_ip}' + description: "Installer IP." + - '{pod}' + + scm: + - git-scm: + credentials-id: '{ssh-credentials}' + refspec: '' + branch: master + logrotate: daysToKeep: 30 numToKeep: 10 @@ -287,20 +306,17 @@ artifactNumToKeep: -1 builders: - - shell: | - #!/bin/bash - set +e - - # vPing - echo "Functest: run vPing" - python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/ -r + - 'functest-fetch-os-creds' + - 'functest-all' + - 'functest-store-results' + - 'functest-cleanup' - job-template: - name: functest-{pod} + name: functest-{installer}-{stream} project-type: freestyle - node: '{pod}' + node: '{node}' parameters: - project-parameter: @@ -313,7 +329,10 @@ name: INSTALLER_IP default: '{installer_ip}' description: "Installer IP." - - '{pod}' + - string: + name: GIT_BASE + default: ssh://gerrit.opnfv.org:29418/$PROJECT + description: "Override GIT_BASE" scm: - git-scm: @@ -334,7 +353,7 @@ - 'functest-cleanup' - job-template: - name: functest-{installer}-{stream} + name: functest-vims-{installer}-{stream} project-type: freestyle @@ -370,9 +389,7 @@ builders: - 'functest-fetch-os-creds' - - 'functest-all' - - 'functest-store-results' - - 'functest-cleanup' + - 'functest-vims' - job-template: name: 'functest-daily-{stream}' @@ -648,6 +665,30 @@ cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results - builder: + name: functest-vims + builders: + - shell: | + #!/bin/bash + set +e + + # source openstack vars + if [ ! -f $HOME/opnfv-openrc.sh ]; then + echo "Credentials file not found in "$HOME/opnfv-openrc.sh + exit 1 + fi + echo "Sourcing the OpenStack credentials in"$HOME/opnfv-openrc.sh + source $HOME/opnfv-openrc.sh + + # WORKSPACE is the root of the functest repo + # go into WORKSPACE where the functest repo is cloned + cd $WORKSPACE + + # vIMS + echo "Functest: run vIMS" + python $WORKSPACE/testcases/vIMS/CI/vIMS.py --debug $WORKSPACE/ + + +- builder: name: functest-store-results builders: - shell: |