I am very new to git as well as Jenkins.
I added ssh keys to the bitbucket and to my local machine when I do this:
git clone git@bitbucket.org :username/repo.git
I can clone.
But when I add the same url ( git@bitbucket.org :username/repo.git ) to the Jenkins repository url, I get the 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
git bitbucket jenkins
sriram
source share