[FIXED JENKINS-5271] Tools download does not appear to respect proxy settings.

This commit is contained in:
Seiji Sogabe authored and Kohsuke Kawaguchi committed 2011-09-18 16:16:38 -07:00
1 parent ce7300cdf6
commit 9207c21f37
2 files changed
+27 -1

No files matched your search

+1 -1
View File
@@ -655,7 +655,7 @@ public final class FilePath implements Serializable {
listener.getLogger().println(message);
// for HTTP downloads, enable automatic retry for added resilience
InputStream in = archive.getProtocol().equals("http") ? new RetryableHttpStream(archive) : con.getInputStream();
InputStream in = archive.getProtocol().equals("http") ? ProxyConfiguration.getInputStream(archive) : con.getInputStream();
CountingInputStream cis = new CountingInputStream(in);
try {
if(archive.toExternalForm().endsWith(".zip"))