diff --git a/changelog.html b/changelog.html index 723e44a72718a3593a4d499a6ab22d20a9e8e1dd..0d369c29e5bdd6bfb1246df69ee6c1639e74b163 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 7bba63d3f7997682b81e55912c8206e4c6471420..f2ed61022732e2bd4c399427c8af16277c033f98 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 + ); } };