- edited description
After Deployment trigger no longer works
Issue #13
resolved
After Deployment trigger it’s not working anymore. The Bamboo logs shows this error:
2020-11-08 01:08:09,815 DEBUG [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-12] [DeploymentResultListener] Looking for plans to be triggered
2020-11-08 01:08:09,877 ERROR [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-12] [AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.bamboo.deployments.execution.events.DeploymentFinishedEvent@503c09fc] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassianlab.bamboo.plugins.afterdeploymenttrigger.DeploymentResultListener.deploymentFinishedEventHandler(com.atlassian.bamboo.deployments.execution.events.DeploymentFinishedEvent), listener=com.atlassianlab.bamboo.plugins.afterdeploymenttrigger.DeploymentResultListener@45f58802}]
java.lang.RuntimeException: For input string: ""
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54)
at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:601)
at java.lang.Long.valueOf(Long.java:803)
at com.atlassianlab.bamboo.plugins.afterdeploymenttrigger.DeploymentResultListener.isShouldBeTriggered(DeploymentResultListener.java:155)
at com.atlassianlab.bamboo.plugins.afterdeploymenttrigger.DeploymentResultListener.lambda$findTriggerables$0(DeploymentResultListener.java:137)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at com.atlassianlab.bamboo.plugins.afterdeploymenttrigger.DeploymentResultListener.findTriggerables(DeploymentResultListener.java:147)
at com.atlassianlab.bamboo.plugins.afterdeploymenttrigger.DeploymentResultListener.deploymentFinishedEventHandler(DeploymentResultListener.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)
... 8 more
Bamboo version: 6.10.4
Plugin version: 0.4
<plugin>
<key>com.atlassianlab.bamboo.plugins.bamboo-after-deployment-trigger-plugin</key>
<name>Bamboo After Deployment Trigger plugin</name>
<version>0.4</version>
<vendor>Atlassian Software Systems Pty Ltd</vendor>
<status>ENABLED</status>
<vendor-url>http://www.atlassian.com/</vendor-url>
<framework-version>2</framework-version>
<bundled>User installed</bundled>
</plugin>
If one of the variables breaks, the plugin fails with this error.
Comments (3)
-
reporter -
reporter - edited description
-
- changed status to resolved
fixed at 0.9
- Log in to comment