Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to install Git plugin in jenkins

Tags:

git

jenkins

i am facing following problem while installing Git plugin in jenkins not sure what needs to be done.

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)
like image 375
Ashish Avatar asked Jul 15 '14 15:07

Ashish


2 Answers

Install scm-api and then try with git plugin. It works for me.

like image 199
Kasun Kariyawasam Avatar answered Nov 19 '22 01:11

Kasun Kariyawasam


Install all the dependencies listed on https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin, including scm-api. I would have assumed that Jenkins checks the dependencies before starting the installation, but it's probably misbehaving somewhere.

like image 10
xeraa Avatar answered Nov 19 '22 01:11

xeraa