Details
-
Bug
-
Resolution: Fixed
-
Low
-
7.1.4
-
None
-
4
-
Severity 3 - Minor
-
0
-
Description
Issue Summary
Sending a deployment template webhook using the variable bamboo.resultsUrl does fail to be sent.
Steps to Reproduce
- Create a deployment webhook template using the variable bamboo.resultsUrl
- Configure a deployment to send notifications using the webhook template that was just created
- Trigger the deployment notification
Expected Results
The webhook is sent.
Actual Results
The webhook fails to be sent and the below exception is thrown in the atlassian-bamboo.log file:
020-12-11 10:42:44,394 ERROR [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-1] [WebhookTransport] [Webhook id=11173890, name=Deploy webhook, uuid=12b486a7-351d-41b0-bf62-a0f0bbcd0037] Variable not found: resultsUrl com.atlassian.bamboo.notification.transports.webhook.VariableNotFoundException: Variable not found resultsUrl at com.atlassian.bamboo.notification.transports.webhook.VariableSubstitutorDecorator.substituteString(VariableSubstitutorDecorator.java:24) at com.atlassian.bamboo.notification.transports.webhook.WebhookTransport.sendNotification(WebhookTransport.java:68) at com.atlassian.bamboo.notification.NotificationDispatcherImpl.dispatchNotifications(NotificationDispatcherImpl.java:45) at com.atlassian.bamboo.deployments.notification.DeploymentNotificationEventListener.onDeploymentFinished(DeploymentNotificationEventListener.java:84) 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:42) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.lambda$null$0(AsynchronousAbleEventDispatcher.java:37) 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)
Workaround
No workaround
Attachments
Issue Links
- relates to
-
BAM-21490 Bamboo variables are not consistently accessible across all notification types (Webhooks)
- Long Term Backlog