X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fenvs%2Fhost-config;h=c656f839b1f3eb7936d98077fba78c64fed38f78;hb=868367c47df84a70a49f7be6b5e6c3150906aa8f;hp=2ad4b3eb7096ce18d148e4a25638af4a891ed14c;hpb=7fc433e94358dcf9f7702e4430db588bad5ab955;p=kvmfornfv.git diff --git a/ci/envs/host-config b/ci/envs/host-config index 2ad4b3eb7..c656f839b 100755 --- a/ci/envs/host-config +++ b/ci/envs/host-config @@ -52,7 +52,7 @@ function setHostIP { function setTestTime { test_type=$1 if [ ${test_type} == "verify" ];then - test_time=1000 # 1s + test_time=120000 # 2m elif [ ${test_type} == "daily" ];then test_time=3600000 # 1hr else @@ -64,9 +64,16 @@ function setTestTime { #Tar the log files generated during testcase execution and exit. function test_exit { exitCode=$1 + time_stamp=$(date -u +"%Y-%m-%d_%H-%M-%S") cd $WORKSPACE/build_output/ if [ -d log ];then - tar -czvf log-$(date -u +"%Y-%m-%d_%H-%M-%S").tar.gz log + tar -czvf log-${time_stamp}.tar.gz log + echo "uploading debugging logs to artifacts" + gsutil cp -r log-*.tar.gz gs://artifacts.opnfv.org/kvmfornfv/\ + kvmfornfv_verify_debug_logs_${time_stamp} > \ + $WORKSPACE/build_output/gsutil.log 2>&1 + echo -e "Download the logs from artifacts using below for debugging\n + http://artifacts.opnfv.org/kvmfornfv/kvmfornfv_verify_debug_logs_${time_stamp}" fi exit $exitCode }