Class WebhookNotificationProcessor

All Implemented Interfaces:
DeploymentProcessor, InitializableByConfigBean, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

public class WebhookNotificationProcessor extends NotificationProcessor<NotificationProcessor.NotificationMessage>
NotificationProcessor implementation that sends a webhook notification with the result of the deployment. The deployment is available to the template as an object with the key "deployment", and serialized as JSON with the key "deployentJson". A WebhookNotificationProcessor instance can be configured with the following YAML properties (in addition to the common ones from NotificationProcessor):
  • url: The URL to send the webhook notification to.
  • method: The HTTP method to use. Default is post.
  • contentType: The content type of the request body. Default is application/json