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@xyzserver.com:04761G744/Jpetstore_App.git
 > 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(CliGitAPIImpl.java:663)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:464)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1057)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
at hudson.model.Run.execute(Run.java:1744)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:374)
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! 

24 comments:

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
vermeer

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

miaavery99 said...

Hello,

Thank you for sharing your experience the process thus it is very much interesting and i got more information from your blog.

DevOps integrates tools for an advanced Software Delivery Pipeline emphasis on quality, automation, and results. DevOps replace a displaced establishing an open communication and intended approach to selecting tools. DevOps can be compared to other IT automation initiatives such as ITSM and ITIL but it is not advised as the same and is particularly in the types and amount of automation that are indicated.


Unknown said...

Worthful Blockchain tutorial. Appreciate a lot for taking up the pain to write such a quality content on Blockchain tutorial. Just now I watched this similar Blockchain tutorial and I think this will enhance the knowledge of other visitors for sure. Thanks anyway.: https://www.youtube.com/watch?v=lf5d-R8-N20

Anonymous said...

Nice blogs about Mastering Linux Shell Scripting at The
Mastering Linux Shell Scripting training in bangalore

Anonymous said...

Nice blogs about Mastering Linux Shell Scripting at The
Mastering Linux Shell Scripting training in bangalore

eMexo Technologies said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

Python Training in electronic city | #pythontraininginelectroniccity #pythontraining

DataScience with Python Training in electronic city | #datasciencewithpythontraininginelectroniccity #datasciencewithpythontraining

AWS Training in electronic city | #awstraininginelectroniccity #awstraining

Big Data Hadoop Training in electronic city | #BigDataHadoopTraininginelectroniccity,Bangalore

Devops Training in electronic city | #devopstraininginelectroniccity #devopstraining