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 + ); } };