2009-12-29 77 views
10

我们使用身份验证运行企业代理,并将Hudson作为我们的CI平台运行。 Hudson可以告诉外部世界,告诉哪些插件需要更新,但是当我们告诉Hudson将更新下载到插件时,我们会得到以下错误。如何让Hudson通过代理进行更新

java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required (The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )" 
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 
at java.lang.reflect.Constructor.newInstance(Unknown Source) 
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) 
at java.security.AccessController.doPrivileged(Native Method) 
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) 
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) 
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) 
at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:603) 
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:812) 
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
at java.util.concurrent.FutureTask.run(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
at java.lang.Thread.run(Unknown Source) 

Caused by: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required (The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )" 
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source) 
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) 
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) 
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) 
at java.net.URLConnection.getHeaderFieldInt(Unknown Source) 
at java.net.URLConnection.getContentLength(Unknown Source) 
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(Unknown Source) 
at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:602) 
... 7 more 

有谁知道我可以如何配置Hudson或我们的JRE或任何需要配置,允许Hudson通过GUI更新?当然,我们可以手动下载更新,但过了一段时间后会变得很烦人。

目前我们在Windows Server 2008上安装了Hudson作为服务,并使用Hudson附带的内置服务器来托管它。另外,我通过“高级”选项卡中设置代理服务器配置

回答

11

两件事要做

1. Pop over into the plugin manager and select advanced, enter the settings in there 
2. Set the properties of the JRE http://java.sun.com/javase/6/docs/technotes/guides/net/properties.html 

您可以设置开机时,哈德森用-Dproperty.name = some.value语法属性。

+0

我试过#1,会尝试#2并回复你,谢谢你! – 2009-12-29 17:04:47

+0

感叹,我在代理配置中设置了域名\\用户名。将其更改为域\用户名后,它现在可以工作。这仍然是一个有效的问题/答案,所以我会高兴地接受这一点,再次感谢。 – 2009-12-29 17:19:53

相关问题