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.

Apeejay Business Center said...

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

meena kumari said...

nice blog. thanks for sharing Devops Tutorials. It’s really Helpful for me.

nutana meka said...

Check it once through Devops Online Training for more info.

venkat cheyat said...

Valuable information thanks for sharing devops Online Training

Devops Training in Chennai said...

Really it was an awesome article...very interesting to read..You have provided an nice article....Thanks for sharing..
Free Devops Training
EMC SAN Training

igc exam said...

It's Very Informative Blog... Thanks for Posting...
IGC Exam

Sunil Dubey said...

Best safari in kenya
Best tour companies in kenya

Apsara G said...

Excellent Sharing. You have done a great job. I gathered lots of new information Oracle Training in Chennai | Oracle Training Institute in Chennai
Oracle Training in Chennai | Oracle Training Institute in Chennai

rakesh manu said...

informative blog thanks for providing such a great information.
Devops Training in Hyderabad

sri krishna kumar said...

I really enjoy it, to reading this
Informatica Training In Chennai | Hadoop Training In Chennai | Sap MM Training In Chennai

Azhar uddin said...

Thanks for the information. Want to get trained on DevOps? Mindmajix provides best DevOps training. Online training by real time experts.

neeti said...

Really nice post i really enjoy it, to reading this. Also check best
Devops Training in Pune

Amar G said...

Iot Training in Bangalore
Machine Learning Training in Bangalore
Pcb Training in Bangalore
Devops Training in Bangalore

David said...

Thanks for sharing this article regarding Jenkins errors.If any one looking for DevOps Training in Hyderabad,Kelly Technologies is the right place.

Anusha shetty said...

Good information sharing about DevOps.
Thank u
DevOps Training in Hyderabad