可以手工下载插件,通过jenkins的web管理控制台的,系统管理->管理插件->高级 菜单来上传安装插件

插件手工下载地址:
http://mirror.xmission.com/jen
kins/plugins/(不推荐,需要自己寻找版本号


不过有时手工下载的插件无法安装成功,以scp插件为例子,尝试了多个版本的安装仍然没法安装成功,


所以选择web管理控制台界面上的自动安装插件页面,不过在自动安装过程中出错。根据提示错误去下载对应版本号的plugins。


错误详细信息如下


hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/scp/1.8/scp.hpi
at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:791)
at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1138)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1298)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1116)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:104)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.UnknownHostException: updates.jenkins-ci.org
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1888)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1883)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1882)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1455)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:756)
... 7 more
Caused by: java.net.UnknownHostException: updates.jenkins-ci.org
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1167)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1103)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:997)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:931)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1511)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2929)
at java.net.URLConnection.getHeaderFieldLong(URLConnection.java:629)
at java.net.URLConnection.getContentLengthLong(URLConnection.java:501)
at java.net.URLConnection.getContentLength(URLConnection.java:485)
at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:755)
... 7 more



手工打开链接

http://updates.jenkins-ci.org/download/plugins/scp/1.8/scp.hpi
下载下来的插件。


通过高级菜单上传上去,等一时,插件就可以安装成功了。