-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing Job with Send notification when job starts in Jenkins 2.387.3 #115
Comments
i have this issue but i did not check "Send notification when job starts" |
The field splitting process added by this pull request seems to be causing issues. If there are no plans to revert, could you please explain the purpose behind adding this field processing? This would help us to contemplate a solution. |
@KocproZ @CrystallDEV Could you possibly help with this issue? |
Sure, but its been quite some time since I made that PR. My quick guess is that you added a field "pair" that isn't formatted in |
is there a temporary solution for this, webhooks aren't sending :( |
@BlueTree242 I did a plug-in downgrade. I'm using version : 218.ve2b_887e3a_f28. |
Im currently looking into it and debugging the application. Will create a PR with a fix today |
…e null values, fix differences between pipeline and webhook, fix the array(s) cascading when saving multiple times
Fix #115 by using a custom object for dynamic fields
great, could you release it now? |
Thank you so much!! |
Thanks for solving it very quickly. |
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Windows 10 - Controller
Windows Server 2012 - Agent
Reproduction steps
I updated Jenkins to Jenkins 2.387.3
Updated all the plugins including this one.
But now I have the following error if I check

Send notification when job starts
If I uncheck that checkbox, it works fine
Expected Results
Work as expected.
Actual Results
Lanzada por el usuario Lucas Recoaro
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Ejecutando remotamente en ao20-staging (AO20-TEST)en el espacio de trabajo C:\jenkins-agent\workspace\re20-server-reiniciar
true
FATAL: Index 1 out of bounds for length 1
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at nz.co.jammehcow.jenkinsdiscord.WebhookPublisher.lambda$prebuild$1(WebhookPublisher.java:205)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at nz.co.jammehcow.jenkinsdiscord.WebhookPublisher.prebuild(WebhookPublisher.java:205)
at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:869)
at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:864)
at hudson.model.Build$BuildExecution.doRun(Build.java:146)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
at hudson.model.Run.execute(Run.java:1900)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
ERROR: Build step failed with exception
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at nz.co.jammehcow.jenkinsdiscord.WebhookPublisher.lambda$perform$3(WebhookPublisher.java:327)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at nz.co.jammehcow.jenkinsdiscord.WebhookPublisher.perform(WebhookPublisher.java:327)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:189)
at hudson.model.Run.execute(Run.java:1947)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
Build step 'Discord Notifier' marked build as failure
Finished: FAILURE
Anything else?
No response
The text was updated successfully, but these errors were encountered: