I'm attempting to pull from a private repository in GitHub. I have keys set up so that the jenkins user can pull from the repository but am having trouble with the Git plugin. When I set the repository URL to:
I receive the error message:
Failed to connect to repository : Command "git ls-remote -h g...@github.com:[myorg]/[myrepo] HEAD" returned status code 128:
stdout:
stderr: Permission denied (publickey).
fatal: The remote end hung up unexpectedly
However, from the command line, this works:
git ls-remote g...@github.com:[myorg]/[myrepo] HEAD
d028a33d1bc3bc4cec49ae53f80f3eb58f09f13d HEAD
and this also gives output:
git ls-remote -h g...@github.com:[myorg/[myrepo]
d028a33d1423bc4cec49ae53f80f3eb5bc09f13d refs/heads/master
It is the combination of using both -h and HEAD that gives bad output.
Do I have something wrong with the repository? Or something wrong with the plugin? Or what am I missing here?
Thanks,
Tom Hanstra