From 483983af087be7bf034b641df9d2c91cb88967cb Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 24 Mar 2017 22:41:34 -0400 Subject: [PATCH] Add Archiving... log message to archives.log 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 --- jjb/include-raw-deploy-archives.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jjb/include-raw-deploy-archives.sh b/jjb/include-raw-deploy-archives.sh index 5f1429f7b..67499f645 100644 --- a/jjb/include-raw-deploy-archives.sh +++ b/jjb/include-raw-deploy-archives.sh @@ -77,7 +77,7 @@ if [ ! -z "$ARCHIVE_ARTIFACTS" ]; then 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" @@ -121,5 +121,5 @@ find "$ARCHIVES_DIR" -type f -print0 \ # 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 -- 2.36.6