我在jenkins中安装Git插件时遇到以下问题,不确定需要做什么。
java.io.IOException: Failed to dynamically deploy this plugin
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1317)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1116)
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)
Caused by: java.io.IOException: Failed to install git plugin
at hudson.PluginManager.dynamicLoad(PluginManager.java:450)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1313)
... 5 more
Caused by: java.io.IOException: Dependency scm-api (0.2) doesn't exist
at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:488)
at hudson.PluginManager.dynamicLoad(PluginManager.java:440)
答案 0 :(得分:9)
安装https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin上列出的所有依赖项,包括 scm-api 。我会假设Jenkins在开始安装之前检查了依赖项,但它可能在某个地方行为不端。
答案 1 :(得分:2)
安装scm-api,然后尝试使用git plugin。它对我有用。
答案 2 :(得分:0)
在我的情况下,我只需要重新启动Jenkins,所以只需转到http://[whatever]/safeRestart