Repository connection Issue

20 views
Skip to first unread message

Sam

unread,
Jan 9, 2017, 10:16:08 AM1/9/17
to Jenkins Users
Hi all,

I have a private repo using gogs and trying to setup a connection from my jenkins project via http but getting the following error:

Failed to connect to repository : Command "git ls-remote -h http://myrepourl.git HEAD" returned status code 128:
stdout: 

stderr: fatal: unable to access 'http://myrepourl.git/': The requested URL returned error: 500

I have added a jenkins user to gogs and tested it.  I can wget the url from the jenkins server ok and also run the git -ls remote repourl HEAD command ok, aswell as clone the repo using git clone on the cli.  I do get prompted for access to the gogs repo when cloning however the username and password i have added to the connection config in the jenkins project works fine.  

There is nothing being outputted to /var/log/jenkins/jenkins.log relating to this so im at a bit of a loss as to how to continue troubleshooting this, I tried using an ssh key but had similar problems, any input would be greatly appreciated.

Many Thanks

Sam


Sam

unread,
Jan 10, 2017, 12:05:13 PM1/10/17
to Jenkins Users
This was caused due to having the incorrect user set in my .ssh/config
Reply all
Reply to author
Forward
0 new messages