Friday, March 3, 2017

Jenkins Error : ERROR: Error cloning remote repo 'origin'

If you upgraded and you face following error. 
Started by user shrikant
Building on master in workspace /var/lib/jenkins/workspace/DEvops
Cloning the remote Git repository
Cloning repository
 > git init /var/lib/jenkins/workspace/DEvops # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Could not init /var/lib/jenkins/workspace/DEvops
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(
at hudson.plugins.git.GitSCM.retrieveChanges(
at hudson.plugins.git.GitSCM.checkout(
at hudson.scm.SCM.checkout(
at hudson.model.AbstractProject.checkout(
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(
at jenkins.scm.SCMCheckoutStrategy.checkout(
at hudson.model.AbstractBuild$
at hudson.model.Run.execute(
at hudson.model.ResourceController.execute(
Caused by: hudson.plugins.git.GitException: Error performing command: git init /var/lib/jenkins/workspace/DEvops

** Solution is This **

Enter Jenkins System Configure (Jenkins -> Manage Jenkins -> Configure System )
When you mention absolute path.

 Go Here
and check your git path e.g. /bin/git or /usr/local/bin/git, /usr/bin/git etc.
This error will go away! 


Vamshi Krishna said...

Thanks for sharing the very useful info about DevOps and keep updating........

Neha Kaur said...

"we are offering best devops online training with job support and high quality training facilities and well expert faculty .
to Register you free demo please visit Intellipaat"

Promozie said...

Thanks For Sharing Information.
Apeejay Business Centre in Pune is Providing fully-furnished and equipped workspace in Pune & commercial office space in pune .

DevOps Training in Hyderabad said...

Thank you for such clear explanation, really good great post on Jenkins.