提交 cc68d4a1 编写于 作者: K kohsuke

[HUDSON-2154] Adding more error diagnostic report in an attempt to find out a...

[HUDSON-2154] Adding more error diagnostic report in an attempt to find out a root cause. This change should let us see what's in the stream.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17320 71c3de6d-444a-0410-be80-ed276b4c234a
上级 1a6d0d6e
......@@ -1143,7 +1143,7 @@ public final class FilePath implements Serializable {
Future<Void> future = target.actAsync(new FileCallable<Void>() {
public Void invoke(File f, VirtualChannel channel) throws IOException {
try {
readFromTar(remote+'/'+fileMask, f,new GZIPInputStream(pipe.getIn()));
readFromTar(remote+'/'+fileMask, f,TarCompression.GZIP.extract(pipe.getIn()));
return null;
} finally {
pipe.getIn().close();
......@@ -1171,7 +1171,7 @@ public final class FilePath implements Serializable {
}
});
try {
readFromTar(remote+'/'+fileMask,new File(target.remote),new GZIPInputStream(pipe.getIn()));
readFromTar(remote+'/'+fileMask,new File(target.remote),TarCompression.GZIP.extract(pipe.getIn()));
} catch (IOException e) {// BuildException or IOException
try {
future.get(3,TimeUnit.SECONDS);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册