Add Archiving... log message to archives.log 42/53842/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 25 Mar 2017 02:41:34 +0000 (22:41 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 25 Mar 2017 02:42:04 +0000 (22:42 -0400)
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>
jjb/include-raw-deploy-archives.sh

index 5f1429f7b797d05ca3cdf34210096ecd12552a1e..67499f645c8b38204295bce1b3cb274ddece07d9 100644 (file)
@@ -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