jenkins在安装git hook plugins提示失败:
OS : CentOS 6.5 64位
Jenkins : 1.638
JDK : 1.8.0_66
Ruby-runtime : 0.12
问题 : gitlab hook plugin无法安装的原因是因为ruby-runtime无法安装.
java.io.IOException: Failed to dynamically deploy this plugin
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1308)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1107)
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:104)
at java.lang.Thread.run(Unknown Source)
解决办法:
看上去是在下载过程中文件出现了问题. 首先关闭Jenkins.找到jenkins主目录下面的插件目录,我的目录在/home/web/.jenkins/plugins, 删除相关文件gitlab-hook.jpi和ruby-runtime.jpi
重启jenkins, 试着重新安装.还是无法安装成功,报错信息,应该是下载文件的网络问题:
hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/ruby-runtime/0.12/ruby-runtime.hpi
at hudson.model.UpdateCenter\$UpdateCenterConfiguratio