Reputation: 163
Hi my Jenkins instance is unable to connect to GIT repository although I googled a lot. Both Jenkins and GIT were installed on same CentOS server. This is the screenshot I got during pipeline set up:
I have done following:
Upvotes: 1
Views: 2565
Reputation: 6638
Jenkins will not use the SSH Keys located on the master or slave that runs the job. So your setup with placing the keys in ~/.ssh
and having a username/password credential set up on on the master will not work.
Instead you should create a set of credentials using the SSH Credential Plugin, where you can also specify the passphrase for the private key. The jobs then need to use this credential to connect to the repository.
Upvotes: 1