ConcurrentModificationException when gerrit-trigger-plugin tries to expand parameters

7 views
Skip to first unread message

Daniel Belenky

unread,
Aug 28, 2017, 10:07:33 AM8/28/17
to Jenkins Users
Hey,

I've encountered an issue that happens in cases where I configure more than one job for a certain Gerrit event and the first job that was triggered failed, Jenkins throws ConcurrentModificationException while trying to expand gerrit-trigger-plugin parameters.
Here is the exception I was able to find:

com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.ParameterExpander expandParameters
SEVERE: Failed to expand env vars into gerrit cmd. Gerrit won't be notified!!
java.util.ConcurrentModificationException
        at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
        at java.util.ArrayList$Itr.next(ArrayList.java:851)
        at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:885)
        at com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.ParameterExpander.expandParameters(ParameterExpander.java:266)
        at com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.ParameterExpander.getBuildStartedCommand(ParameterExpander.java:132)
        at com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.GerritNotifier.buildStarted(GerritNotifier.java:84)
        at com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.job.ssh.BuildStartedCommandJob.run(BuildStartedCommandJob.java:80)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

I've opened ENKINS-46483 to track the issue and maybe get some assistance from the developers.

Has anyone encountered this issue before? Any advices?
Reply all
Reply to author
Forward
0 new messages