summaryrefslogtreecommitdiffstats
path: root/jjb/infra/bifrost-verify.sh
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-01-20 14:06:07 +0000
committerMarkos Chandras <mchandras@suse.de>2017-01-20 14:06:07 +0000
commit34338a12d9a8dd2ac9ddd2882efca18fc8fb33de (patch)
tree6d9f5a63af580daefb863afe872d689db1ad5012 /jjb/infra/bifrost-verify.sh
parent6e13b028a29cd05b032fc8e12b9fe93ba3fa6936 (diff)
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 <mchandras@suse.de>
Diffstat (limited to 'jjb/infra/bifrost-verify.sh')
-rwxr-xr-xjjb/infra/bifrost-verify.sh6
1 files 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