Cut down on text spam at the end of the build. We can always investigate
the log file if necessary.
Change-Id: I58c97f34ef90f2b937a330f0faaf6ed3c22f68c8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
shopt -s globstar # Enable globstar to copy archives
for f in $ARCHIVE_ARTIFACTS; do
[[ -e $f ]] || continue # handle the case of no files to archive
- echo "Archiving $f"
+ echo "Archiving $f" >> "$ARCHIVES_DIR/_archives.log"
dir=$(dirname "$f")
mkdir -p "$WORKSPACE/archives/$dir"
mv "$f" "$WORKSPACE/archives/$f"
# Compress Java heap dumps using xz
find "$ARCHIVES_DIR" -type -f -name \*.hprof -print0 | xargs -0 xz
-zip -r archives.zip "$JENKINS_HOSTNAME/" > "$ARCHIVES_DIR/_archives-zip.log"
+zip -r archives.zip "$JENKINS_HOSTNAME/" >> "$ARCHIVES_DIR/_archives.log"
du -sh archives.zip