Using webhooks
Bamboo webhooks allow you to send selected real-time information about Bamboo to third-party apps. 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 the webhook response: its status code, status, URL, event name, template name, and send and receive time. The plan admin 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.
はじめる前に
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:
名前
HTTP メソッド
Payload
ヘッダー
You can use Bamboo variables when editing webhook payload and headers.
- 追加 を選択します。
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.
- 保存 を選択します。
To delete a webhook template:
- Select > Communication > Webhook templates.
- Next to the webhook template you want to delete, select the Delete button.