Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-38640] Use a GREEDY RemoteInputStream
  • Loading branch information
Andres Rodriguez committed Oct 3, 2016
1 parent 42a296e commit 5b4c755
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -119,13 +119,8 @@ public static void unstash(@Nonnull Run<?,?> build, @Nonnull String name, @Nonnu
if (!storage.isFile()) {
throw new AbortException("No such saved stash ‘" + name + "’");
}
InputStream is = new FileInputStream(storage);
try {
workspace.untarFrom(is, FilePath.TarCompression.GZIP);
// currently nothing to print; listener is a placeholder
} finally {
is.close();
}
new FilePath(storage).untar(workspace, FilePath.TarCompression.GZIP);
// currently nothing to print; listener is a placeholder
}

/**
Expand Down

0 comments on commit 5b4c755

Please sign in to comment.