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>
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