[FIXED JENKINS-19473] Trying to work around jzlib bug.

This commit is contained in:
Jesse Glick committed 2013-09-11 17:45:10 -04:00
1 parent 96187b71e7
commit b02d45737e
2 files changed
+9 -2

No files matched your search

+6 -1
View File
@@ -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
);
}
};