2009-12-29 16 views
10

Prowadzimy korporacyjny serwer proxy z uwierzytelnianiem, a my pracujemy nad Hudson jako naszą platformą CI. Hudson może dotrzeć do świata zewnętrznego, aby stwierdzić, które wtyczki wymagają aktualizacji, ale kiedy powiemy Hudsonowi, aby pobrał aktualizacje wtyczek, otrzymamy następujący błąd.Jak mogę zmusić Hudsona do aktualizacji poprzez Proxy

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 

Czy ktoś wie jak mogę skonfigurować Hudson czy nasz JRE lub cokolwiek wymaga konfigurowania, aby umożliwić Hudson zaktualizować poprzez GUI? Oczywiście możemy pobrać aktualizacje ręcznie, ale to po pewnym czasie staje się denerwujące.

Obecnie mamy zainstalowany Hudson jako usługa na Windows Server 2008 i jego użycie wbudowanego serwera, który został dostarczony wraz z Hudsonem. Również mam ustawić konfigurację proxy korzystając z zakładki „Zaawansowane”

Odpowiedz

11

dwie rzeczy do zrobienia

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 

Można ustawić właściwości za pomocą = składni some.value -Dproperty.name podczas uruchamiania Hudson.

+0

Próbowałem # 1, spróbuję # 2 i wrócę do Ciebie, dzięki człowieku! –

+0

westchnienie, miałem konfigurację domeny \\ nazwa użytkownika w konfiguracji proxy. Po zmianie na domena \ nazwa użytkownika, teraz działa. To wciąż poprawne pytanie/odpowiedź, więc z radością przyjmuję to, dziękuję jeszcze raz. –