From 8e7c925bf9fa5ef8b42fe34cf52b41fafde3d788 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Tue, 21 Mar 2017 15:30:10 +0100 Subject: [PATCH] Compress Java heap dumps using xz xz is included in the baseline image. Change-Id: Ie9cf324331d3a82c89b2265259448dd708759d66 Signed-off-by: Stephen Kitt --- jjb/include-raw-deploy-archives.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jjb/include-raw-deploy-archives.sh b/jjb/include-raw-deploy-archives.sh index b0351d1e6..5f1429f7b 100644 --- a/jjb/include-raw-deploy-archives.sh +++ b/jjb/include-raw-deploy-archives.sh @@ -118,6 +118,8 @@ find "$ARCHIVES_DIR" -type f -print0 \ | egrep -e ':.*text.*' \ | cut -d: -f1 \ | xargs -d'\n' -r gzip +# 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" du -sh archives.zip -- 2.36.6