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 <https://issues.jenkins-ci.org/browse/JENKINS-46483> 
to track the issue and maybe get some assistance from the developers.

Has anyone encountered this issue before? Any advices?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/edfb507f-095e-4c02-b46e-5aab35becb5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to