Reputation: 584
I installed Jenkins on Windows 7 and I installed the Git plug-in. When I create a new project and enter the Git Repository URL I get the following error displayed in red on the configuration page:
Failed to connect to repository : Command "C:\Program Files\Git\bin\git.exe ls-remote -h http://path-to-repository/repository.git HEAD" returned status code 128: stdout: stderr: fatal: unable to access 'http://path-to-repository/repository.git/': The requested URL returned error: 503
The same command works both on the Git bash and the Windows console on the same computer. The jenkins.err.log shows nothing useful. What could be the problem or what tools can I use to track it down?
Upvotes: 2
Views: 23985
Reputation: 7
This error comes (Error code 128) when there is an update in the Git version.
And also, Node server SSH key path will be invalid, by default it will be referencing to some other location SSH key location.
What you need to do is:
You have to mention the correct path of the SSH key in the Environment variables of master template.
Go to the Master template/server.
Open the Environment Variables window after taking the admin rights.
In The environment variables windows for "USERID":
C:\Users\"your userid"
).Issue will be resolved.
Upvotes: 1
Reputation: 584
The problem was the corporate proxy. When I remove the proxy in "Manage Jenkins -> Manage Plugins -> Advanced Settings" Jenkins can successfully clone the Git repository. Although when I do this I cannot download plugins anymore. But that's another story.
Upvotes: 1