I Created a private key and added the public key to my keys on bitbucket just like explained in this tutorial
I'm trying to add the private key to Jenkins under Credentials menu but it just keep saying:
Failed to connect to repository : Command "C:\Program Files\Git\cmd\git.exe -c core.askpass=true ls-remote -h git@bitbucket.org:bla/blabla.git HEAD" returned status code 128:
stdout:
stderr: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What am i doing wrong withing Jenkins?
Thanks.