Compress Java heap dumps using xz 14/53614/2
authorStephen Kitt <skitt@redhat.com>
Tue, 21 Mar 2017 14:30:10 +0000 (15:30 +0100)
committerStephen Kitt <skitt@redhat.com>
Tue, 21 Mar 2017 15:15:34 +0000 (16:15 +0100)
xz is included in the baseline image.

Change-Id: Ie9cf324331d3a82c89b2265259448dd708759d66
Signed-off-by: Stephen Kitt <skitt@redhat.com>
jjb/include-raw-deploy-archives.sh

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