Outgoing Webhooks can be used to trigger actions in other applications based on specific events that occur within FlexDeploy. Traditional webhooks simply POST a json payload to a specified endpoint. While this functionality is a big use case, FlexDeploy offers the ability to execute any groovy script when the event occurs, called Listeners. For example, you can setup a Listener to upload failed plugin logs from a workflow execution to a separate server in addition to sending an email. The flexibility of groovy script and FlexDeploy’s model allows users to accomplish exactly what they need.
In order to take advantage of FlexDeploy’s Outgoing Webhooks you must first create a Listener. When creating this listener you can specify on which event types the script will be executed. Once one of these events are executed, FlexDeploy will automatically notify any listeners corresponding with the event type.
Outgoing Webhooks can be accessed from Administration → Integrations → Outgoing Webhooks. This page will show all the Webhook Listeners configured in FlexDeploy. You can create a new Webhook Listener by clicking the
Create Listener button on the page. Click the view messages page to view the results of any received events, or to resubmit them.