Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-21184

Sending a deployment template webhook using the variable bamboo.resultsUrl fails to be sent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 8.2.0, 8.1.3, 8.0.7
    • 7.1.4
    • Notifications
    • None

    Description

      Issue Summary

      Sending a deployment template webhook using the variable bamboo.resultsUrl does fail to be sent.

      Steps to Reproduce

      1. Create a deployment webhook template using the variable bamboo.resultsUrl
      2. Configure a deployment to send notifications using the webhook template that was just created
      3. 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

          Activity

            People

              achystoprudov Alexey Chystoprudov
              malonso@atlassian.com Miguel Alonso
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: