This was caused due to having the incorrect user set in my .ssh/config On Monday, January 9, 2017 at 3:16:08 PM UTC, Sam wrote: > > 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 > > >
-- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a2c6daf4-25db-4d5a-a926-645212e74650%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
