Gerrit trigger plugin not working on Jenkins

Description

Jenkins can't connect to Gerrit so CI doesn't trigger. I've seen some exceptions in the logs and the staging system works just fine so it's likely a fault in the plugin.

Activity

Show:

Former user November 26, 2020 at 1:10 PM

closing old issue.

Former user September 25, 2019 at 9:30 AM

Jenkins restarted, Gerrit connectivity restored. Will look through the logs to see the moment when the plugin started failing.

Barak Korren September 25, 2019 at 9:13 AM

go ahead - but notify devel first or let do it

Former user September 25, 2019 at 9:03 AM

The following shows up in jenkins logs when trying to trigger patches or activate gerrit:

Sep 25, 2019 8:50:18 AM com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.actions.manual.ManualTriggerAction getServerConfig
SEVERE: Could not find server null
Sep 25, 2019 8:51:49 AM org.eclipse.jetty.server.handler.ContextHandler$Context log
WARNING: Error while serving https://jenkins.ovirt.org/gerrit-trigger/diagnostics/buildMemory
java.lang.reflect.InvocationTargetException
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:400)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
...
Caused by: java.lang.NullPointerException
at com.sonyericsson.hudson.plugins.gerrit.trigger.diagnostics.BuildMemoryReport$2.compare(BuildMemoryReport.java:78)
at com.sonyericsson.hudson.plugins.gerrit.trigger.diagnostics.BuildMemoryReport$2.compare(BuildMemoryReport.java:75)
at java.util.TreeMap.compare(TreeMap.java:1295)
at java.util.TreeMap.put(TreeMap.java:538)
at com.sonyericsson.hudson.plugins.gerrit.trigger.diagnostics.BuildMemoryReport.put(BuildMemoryReport.java:162)
at com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.model.BuildMemory.report(BuildMemory.java:491)
at com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.ToGerritRunListener.report(ToGerritRunListener.java:175)
at com.sonyericsson.hudson.plugins.gerrit.trigger.diagnostics.Diagnostics.getBuildMemory(Diagnostics.java:138)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
... 95 more

Will go ahead and restart Jenkins to get the plugin into a normal state

Fixed

Assignee

Former user(Deactivated)

Reporter

Priority

Created September 25, 2019 at 9:02 AM
Updated November 26, 2020 at 1:10 PM
Resolved November 26, 2020 at 1:10 PM