From 34338a12d9a8dd2ac9ddd2882efca18fc8fb33de Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 20 Jan 2017 14:06:07 +0000 Subject: [PATCH] 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 --- jjb/infra/bifrost-verify.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.16.6