I'm very new to git and also Jenkins.
I added the ssh
keys to the bitbucket and in my local machine, when I do :
git clone git@bitbucket.org:username/repo.git
I can be able to clone.
But when I add the same url (git@bitbucket.org:username/repo.git
) to the Jenkins repository url I get an following error:
Failed to connect to repository : Command "git ls-remote -h git@bitbucket.org:username/repo.git HEAD" returned status code 128:
stdout:
stderr: Permission denied (publickey).
fatal: The remote end hung up unexpectedly