Jenkins安装Gitlab hook失败的解决方案

Jenkins安装Gitlab hook失败的解决方案

  • 失败报错信息
  • 解决方案

失败报错信息

Jul 29, 2019 2:58:18 AM jenkins.InitReactorRunner$1 onTaskFailed
SEVERE: Failed Loading plugin Gitlab Hook Plugin v1.4.2 (gitlab-hook)
java.io.IOException: Gitlab Hook Plugin version 1.4.2 failed to load.
 - ruby-runtime version 0.12 is missing. To fix, install version 0.12 or later.
	at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:868)
	at hudson.PluginManager$2$1$1.run(PluginManager.java:544)
	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1095)
	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

解决方案

先描述一下我的环境:

  1. VMware搭建CentOS 7
  2. docker pull jenkins/jenkins:lts;
  3. Jenkins 安装Maven插件;
  4. Jenkins 安装Gitlab;
  5. Jenkins安装Gitlab hook就报了上述错误;

百度了一下,说是什么不能安装路径不能有空格,试过了,没用,所以我觉得应该是网络或者的问题
我打开梯子,重新安装gitlab hook, 居然成功了,不要问我什么是墙,什么是梯子,“我不懂”

你可能感兴趣的:(异常处理)