From: Markos Chandras Date: Fri, 20 Jan 2017 14:06:07 +0000 (+0000) Subject: jjb: infra: bifrost-verify.sh: Download the build log to $WORKDIR X-Git-Tag: danube.1.0~436 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=refs%2Fchanges%2F99%2F27299%2F1;p=releng.git jjb: infra: bifrost-verify.sh: Download the build log to $WORKDIR We need to store the build log into a location where we have write access. We will use the $WORKDIR for that. Fixes the following problem. /tmp/hudson5015921933634723839.sh: line 23: build_log.txt: Permission denied Change-Id: Ib8f00853a84a42bcc90155e4ca11bb89d921a867 Signed-off-by: Markos Chandras --- diff --git a/jjb/infra/bifrost-verify.sh b/jjb/infra/bifrost-verify.sh index 201d3f2d6..dbe39762c 100755 --- a/jjb/infra/bifrost-verify.sh +++ b/jjb/infra/bifrost-verify.sh @@ -20,9 +20,9 @@ function upload_logs() { echo "Uploading build logs to ${BIFROST_LOG_URL}" echo "Uploading console output" - curl -s -L ${BIFROST_CONSOLE_LOG} > build_log.txt - gsutil -q cp -Z build_log.txt ${BIFROST_GS_URL}/build_log.txt - rm build_log.txt + curl -s -L ${BIFROST_CONSOLE_LOG} > ${WORKSPACE}/build_log.txt + gsutil -q cp -Z ${WORKSPACE}/build_log.txt ${BIFROST_GS_URL}/build_log.txt + rm ${WORKSPACE}/build_log.txt [[ ! -d ${WORKSPACE}/logs ]] && exit 0