From b02d45737e4eb7a0455ebe192271cf76bbf271e0 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Wed, 11 Sep 2013 17:45:10 -0400 Subject: [PATCH] [FIXED JENKINS-19473] Trying to work around jzlib bug. --- changelog.html | 4 +++- core/src/main/java/hudson/FilePath.java | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/changelog.html b/changelog.html index 723e44a727..0d369c29e5 100644 --- a/changelog.html +++ b/changelog.html @@ -55,7 +55,9 @@ Upcoming changes diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index 7bba63d3f7..f2ed610227 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -632,7 +632,12 @@ public final class FilePath implements Serializable { } } public OutputStream compress(OutputStream out) throws IOException { - return new GZIPOutputStream(new BufferedOutputStream(out)); + return new GZIPOutputStream(new BufferedOutputStream(out), + // TODO JENKINS-19473 workaround; replace when jzlib fixed + new com.jcraft.jzlib.Deflater(6, 15+16, 9), // use 9 for memLevel + 512, + true + ); } }; -- GitLab