From ce7c448901f386b935a0f03d5f17ca6e541b9a49 Mon Sep 17 00:00:00 2001 From: boucherv Date: Tue, 6 Oct 2015 14:44:41 +0200 Subject: Update vIMS jobs JIRA: FUNCTEST-38 Change-Id: I6fc3294fe81f4c04bab03f45f8ead845f2c4e345 Signed-off-by: boucherv --- jjb/functest/functest.yml | 81 +++++++++++++++++++++++++++++++++++------------ 1 file 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}' @@ -647,6 +664,30 @@ # save tempest.conf for further troubleshooting 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: -- cgit 1.2.3-korg