我在jenkins

时间:2017-10-09 10:57:21

标签: jenkins jenkins-plugins

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)
            at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
            at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
            at java.net.PlainSocketImpl.connect(Unknown Source)
            at java.net.SocksSocketImpl.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at sun.net.NetworkClient.doConnect(Unknown Source)
            at sun.net.www.http.HttpClient.openServer(Unknown Source)
            at sun.net.www.http.HttpClient.openServer(Unknown Source)
            at sun.net.www.http.HttpClient.<init>(Unknown Source)
            at sun.net.www.http.HttpClient.New(Unknown Source)
            at sun.net.www.http.HttpClient.New(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.followRedirect0(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.followRedirect(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(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.getHeaderFieldLong(Unknown Source)
            at java.net.URLConnection.getContentLengthLong(Unknown Source)
            at java.net.URLConnection.getContentLength(Unknown Source)
            at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1126)
        Caused: 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:1139)

尝试安装jenkins插件时出错:

Failed to load http://updates.jenkins-ci.org/download/plugins/git/3.6.0/git.hpi to C:\Users\GUR49249\.jenkins\plugins\git.jpi.tmp

1 个答案:

答案 0 :(得分:0)

我找到了解决此问题的方法。我们可以下载所需的插件并将它们放在./jenkins\plugins文件夹中。之后我们需要重新启动jenkins服务器。