Unable to add Gerrit server to Jenkins, With the Gerrit Trigger plugin, "Connection error : com.jcraft.jsch.JSchException: Auth fail"

135 Views Asked by At

I want to add my Gerrit Server to Jenkins by using the Gerrit Trigger plugin. However, When i click the "Test Connection" button i get the error "Connection error : com.jcraft.jsch.JSchException: Auth fail"

I have verified that the Jenkins account can SSH into the Gerrit server without specifying a password, I have also verified that i can open my Gerrit Website from my Jenkins Server.

I dont know why the connection fails, And i haven't been able to find a start to finish guide for adding Gerrit servers in Jenkins.

1

There are 1 best solutions below

2
JenkinsGerritIntegrator On

Solved. It took me a while to find a guide that included this step. But i solved it by adding the public ssh key in the Gerrit interface. Now the connection succeeds on this step.