mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
[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
This commit is contained in:
1 parent
2bec1ffab8
commit
2d44c63d70
2 files changed
+7
-2
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user