summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-01-20 09:50:27 +0000
committerMarkos Chandras <mchandras@suse.de>2017-01-20 09:50:27 +0000
commit0aec34133eba3250904f0fd9fc7869b20775c858 (patch)
treed478f4fca46aca07145126e42a8586356a54d3c6 /jjb
parent79c0c69780542b6064fcb98940c89086205e92da (diff)
jjb: infra: bifrost-verify.sh: Rework code for uploading the build log
gsutil does not support compression on streaming uploads so rework the code to save the log into a temporary file first. Fixes the following error: CommandException: gzip compression is not currently supported on streaming uploads. Remove the compression flag or save the streamed output temporarily to a file before uploading. Change-Id: I3976bf3271be3aff8bc7b656ac49de6986ca6c36 Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/infra/bifrost-verify.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/infra/bifrost-verify.sh b/jjb/infra/bifrost-verify.sh
index 2cb41a45b..201d3f2d6 100755
--- a/jjb/infra/bifrost-verify.sh
+++ b/jjb/infra/bifrost-verify.sh
@@ -20,7 +20,9 @@ function upload_logs() {
echo "Uploading build logs to ${BIFROST_LOG_URL}"
echo "Uploading console output"
- curl -s -L ${BIFROST_CONSOLE_LOG} | gsutil -q cp -Z - ${BIFROST_GS_URL}/build_log.txt
+ 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
[[ ! -d ${WORKSPACE}/logs ]] && exit 0