summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2018-04-06 15:05:37 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-04-06 15:05:37 +0000
commit945534eee8642759408f135ff6b0b5a2e9c7b614 (patch)
tree82c0521e61c44b27cf1be1dbbe605bb655bd435d /jjb
parente876599edaaa4ab25a8f4160ef9dc7b3cc97b62f (diff)
parent4245bad84c1b0ff6b8439d41c17b2740439dbd91 (diff)
Merge "Apex: fix log uploading"
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/apex/apex-fetch-logs.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/jjb/apex/apex-fetch-logs.sh b/jjb/apex/apex-fetch-logs.sh
index f25f456b1..bdb2252b3 100755
--- a/jjb/apex/apex-fetch-logs.sh
+++ b/jjb/apex/apex-fetch-logs.sh
@@ -14,9 +14,10 @@ if sudo opnfv-pyutil --fetch-logs; then
echo "WARNING: Unable to determine log location. Logs will not be uploaded"
exit 0
else
+ sudo chmod 777 ${LOG_LOCATION}
UPLOAD_LOCATION="${GS_URL}/logs/${JOB_NAME}/${BUILD_NUMBER}/"
- gsutil cp -r ${LOG_LOCATION} gs://${UPLOAD_LOCATION} > gsutil.latest_logs.log
- echo "Logs available at https://${UPLOAD_LOCATION}/$(basename $LOG_LOCATION)"
+ gsutil -m cp -r ${LOG_LOCATION} gs://${UPLOAD_LOCATION} > gsutil.latest_logs.log
+ echo -e "Logs available at: \n$(find ${LOG_LOCATION} -type f | sed -n 's#^/tmp/#http://'$UPLOAD_LOCATION'#p')"
fi
else
echo "WARNING: Log retrieval failed. No logs will be uploaded"