summaryrefslogtreecommitdiffstats
path: root/jjb/kvmfornfv/kvmfornfv-test.sh
diff options
context:
space:
mode:
authorkalyanreddy <reddyx.gundarapu@intel.com>2016-09-01 10:51:52 +0530
committerKalyan reddy Gundarapu <reddyx.gundarapu@intel.com>2016-09-08 10:43:01 +0000
commit3f7624c80203e6f46cd9cedab618bba3c1f52324 (patch)
tree79081275d0f148f83ef927f47370900e7eb0f564 /jjb/kvmfornfv/kvmfornfv-test.sh
parentc355f9df975349b6ccd09075f178841d035b631e (diff)
KVMFORNFV: Enable artifact download and testing for daily job
This patch contains scripts for downloading artifacts and running tests as part of KVM4NFV daily job. Change-Id: Iaf557d260e236f873acf99d7d735c54d7d2903cf Signed-off-by: kalyanreddy <reddyx.gundarapu@intel.com>
Diffstat (limited to 'jjb/kvmfornfv/kvmfornfv-test.sh')
-rwxr-xr-xjjb/kvmfornfv/kvmfornfv-test.sh22
1 files changed, 19 insertions, 3 deletions
diff --git a/jjb/kvmfornfv/kvmfornfv-test.sh b/jjb/kvmfornfv/kvmfornfv-test.sh
index 868de13bd..06377ac4f 100755
--- a/jjb/kvmfornfv/kvmfornfv-test.sh
+++ b/jjb/kvmfornfv/kvmfornfv-test.sh
@@ -3,8 +3,24 @@
##This script includes executing cyclictest scripts.
##########################################################
#The latest build packages are stored in build_output
+
ls -al $WORKSPACE/build_output
-#start the test
-cd $WORKSPACE
-./ci/test_kvmfornfv.sh
+if [[ "$JOB_NAME" =~ (verify|merge|daily|weekly) ]]; then
+ JOB_TYPE=${BASH_REMATCH[0]}
+else
+ echo "Unable to determine job type!"
+ exit 1
+fi
+
+# do stuff differently based on the job type
+case "$JOB_TYPE" in
+ verify|daily)
+ #start the test
+ cd $WORKSPACE
+ ./ci/test_kvmfornfv.sh $JOB_TYPE
+ ;;
+ *)
+ echo "Test is not enabled for $JOB_TYPE jobs"
+ exit 1
+esac