-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Gerrit trigger plugin 2.3.0, Jenkins 1.430
After installing the plugin, but before configuring the correct SSH key, the plugin tried to read a non-existing key and spammed the server log with the following several times per second:
ALLVARLIG: IOException: com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /home/marcus/.ssh/id_rsa (No such file or directory) at com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshConnection.<init>(SshConnection.java:77) at com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler.connect(GerritHandler.java:234) at com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler.run(GerritHandler.java:160) Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /home/marcus/.ssh/id_rsa (No such file or directory) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:98) at com.jcraft.jsch.JSch.addIdentity(JSch.java:206) at com.jcraft.jsch.JSch.addIdentity(JSch.java:200) at com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshConnection.<init>(SshConnection.java:69) ... 2 more Caused by: java.io.FileNotFoundException: /home/marcus/.ssh/id_rsa (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:137) at java.io.FileInputStream.<init>(FileInputStream.java:96) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:83) ... 5 more
It should just give up if the key is not found.
After configuring the key, but with no Gerrit instance running, the log is spammed with this instead, also several times per second:
2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:49 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:49 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit