diff --git a/core/pom.xml b/core/pom.xml index 51e352376e..485c716368 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -791,7 +791,7 @@ THE SOFTWARE. org.jvnet.robust-http-client robust-http-client - 1.0 + 1.1 diff --git a/core/src/main/java/hudson/tools/JDKInstaller.java b/core/src/main/java/hudson/tools/JDKInstaller.java index 0bf4445631..cdca2a34f5 100644 --- a/core/src/main/java/hudson/tools/JDKInstaller.java +++ b/core/src/main/java/hudson/tools/JDKInstaller.java @@ -305,7 +305,12 @@ public class JDKInstaller extends ToolInstaller { try { FileOutputStream out = new FileOutputStream(tmp); try { - IOUtils.copy(new RetryableHttpStream(src), out); + IOUtils.copy(new RetryableHttpStream(src) { + @Override + protected HttpURLConnection connect() throws IOException { + return (HttpURLConnection) ProxyConfiguration.open(url); + } + }, out); } finally { out.close(); }