2016-06-29 18 views
2

我正在嘗試添加多個SCM插件,並且獲取以下連接超時錯誤。我正在運行2.0版本。沒有代理設置。
有沒有辦法讓手動插件和安裝?謝謝。jenkins - 無法下載和安裝插件(多個scm) - 連接超時

hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/multiple-scms/0.6/multiple-scms.hpi (redirected to: http://mirrors.jenkins-ci.org/plugins/multiple-scms/0.6/multiple-scms.hpi) 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1153) 
    at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1650) 
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1848) 
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1624) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110) 
    at java.lang.Thread.run(Unknown Source) 
Caused by: java.net.SocketTimeoutException: connect timed out 
    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$10.run(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection$10.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.getInputStream0(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1105) 
    ... 7 more 
Caused by: java.net.SocketTimeoutException: connect timed out 
    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) 
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) 
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) 
    ... 7 more 

回答

2

下載從http://mirrors.jenkins-ci.org/plugins/multiple-scms/0.6/multiple-scms.hpi插件,並把它裏面$JENKINS_HOME/plugins目錄並重新啓動詹金斯。

1

您可以下載它在您的瀏覽器或終端使用wget:

wget http://updates.jenkins-ci.org/download/plugins/multiple-scms/0.6/multiple-scms.hpi

然後去: 經理詹金斯>插件管理器>高級選項卡

向下滾動到上傳插件部分,單擊選擇文件以選擇您下載的hpi文件並按上傳。之後,重新啓動詹金斯。

我能夠在這裏沒有問題地下載hpi插件,所以它可能是一個網絡問題。