Showing posts with label repository. Show all posts
Showing posts with label repository. Show all posts

Thursday, 5 May 2016

Failed to connect to repository : Error performing command: git ls-remote -h in jenkins

Failed to connect to repository : Error performing command: git ls-remote -h git@github.com:voice/voice_Java.git HEAD.

solution : problem might be due to you have not installed git repo on the machine.

install and try again in jenkins when creating a job configuration.

Wednesday, 20 April 2016

jenkins,github Failed to connect to repository

Failed to connect to repository : Command "/usr/bin/git -c core.askpass=true ls-remote -h
...
stderr: remote: Invalid username or password

problem : jenkins is trying to handshake with git with the provided credentials. but unable to login.

solution :
1) Go to jenkins homepage.

2) Go to credentials, add git user name and password.

3) Go to jenkins project, select new added credentials from the dropdown.





Friday, 15 April 2016

Failed to connect to repository : Could not init /tmp/hudson

Failed to connect to repository : Could not init /tmp/hudson

1) There's no such executable git in PATH: /sbin, /usr/sbin, /bin, /usr/bin.
In the jenkins job section.
Advanced...
Source Code Management.
got git.
2) Failed to connect to repository : Could not init /tmp/hudson

solution : please install git(as below ) or provide the git exe file path (/usr/bin/git).  

Install git on linux.

command : sudo yum install git-all

ref : https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

now check the git version.
cmd : git --version