jjb: infra: bifrost-verify.sh: Download the build log to $WORKDIR 99/27299/1
authorMarkos Chandras <mchandras@suse.de>
Fri, 20 Jan 2017 14:06:07 +0000 (14:06 +0000)
committerMarkos Chandras <mchandras@suse.de>
Fri, 20 Jan 2017 14:06:07 +0000 (14:06 +0000)
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>
jjb/infra/bifrost-verify.sh

index 201d3f2..dbe3976 100755 (executable)
@@ -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