Подтвердить что ты не робот

Как я могу получить Hudson для обновления через Proxy

Мы запускаем корпоративный прокси с аутентификацией, и мы используем Hudson как нашу платформу CI. Хадсон может получить доступ к внешнему миру, чтобы сообщить, какие плагины нуждаются в обновлении, но когда мы говорим Хадсону, чтобы загрузить обновления для плагинов, мы получаем следующую ошибку.

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 обновляться через графический интерфейс? Конечно, мы можем загружать обновления вручную, но через некоторое время это раздражает.

В настоящее время Hudson установлен как служба на сервере Windows 2008 и использует встроенный сервер, который поставляется с Hudson для его размещения. Кроме того, я установил конфигурацию прокси через вкладку "Дополнительно"

4b9b3361

Ответ 1

Две вещи, чтобы сделать

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 при запуске hudson.