提交 2d44c63d 编写于 作者: K kohsuke

[FIXED HUDSON-7327] honor the proxy setting in Hudson. Fixed toward 1.384.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36462 71c3de6d-444a-0410-be80-ed276b4c234a
上级 2bec1ffa
......@@ -791,7 +791,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jvnet.robust-http-client</groupId>
<artifactId>robust-http-client</artifactId>
<version>1.0</version>
<version>1.1</version>
</dependency>
<dependency><!-- Hudson doesn't depend on it but some plugin wants the latest version. Bundling 1.4 until we figure out a mechanism to let plugins load its own -->
......
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册