Using webhooks
Bamboo webhooks allow you to send selected real-time information about Bamboo to third-party applications. For example, you can display Bamboo build status in your team's chatroom, or signal an alarm in case a plan fails.
By default, Bamboo comes with two webhook templates that you can use:
Build webhook
Deployment webhook
You can modify the existing templates to suit your needs, or create your own templates, which can later be defined as notifications.
If you're using webhooks in your deployments, you can check their status in the deployment details screen. Once you select the webhook details, you will see a table with all webhooks responses related to the current deployment. If you can't see the table, it means that no webhooks have been sent.
The table is visible for all users who can see build results. The table contains basic information about webhook response: its status code, status, URL, event name, template name, send and receive time. Plan administrator has permissions to view webhook details: response header and body. If any secret variables are used in the URL, body or header, they will be hidden.
Before you begin
Only Bamboo administrators can add, edit, and delete webhook templates.
To create a webhook template:
- Select > Communication > Webhook templates.
- Select Add template.
- Provide the following details for your new webhook template:
Name
Http Method
Payload
Headers
You can use Bamboo variables when editing webhook payload and headers.
- Select Add.
Your webhook template is ready to use. You can define it as a notification type in your plan and jobs configuration, see Configuring notifications for a plan and its jobs.
To edit a webhook template:
- Select > Communication > Webhook templates.
- Next to the webhook template you want to change, select the Edit button.
- Make your changes to the webhook template.
- Select Save.
To delete a webhook template:
- Select > Communication > Webhook templates.
- Next to the webhook template you want to delete, select the Delete button.