I'm trying to configure the git repository in Jenkins, I followed all steps on github documentation but I had the bellow error on my application .
I've configured the agent, then I put the ssh url on jenkins. I've configured the ssh on github as well.
Failed to connect to repository : Command "git ls-remote -h -- git@github.com:user/maven-project.git HEAD" returned status code 128: stdout: stderr: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists