You can trigger a build on Bitbucket whenever your content on Canonic changes.
For example: Trigger a build for your JAMStack frontend whenever a new post is added to the Posts table.
Bitbucket is a build type webhook. To create one, select your input type as Build when creating a webhook.
Bitbucket Settings
Property | Description |
---|---|
Username | The username for the account that has the webhook |
Password | The password for the corresponding username |
Repo URL | The repository url for the account that you want to trigger the webhook for |
Repo Branch | The branch for which the webhook will be triggered |
Creating a Bitbucket webhook
- Create a new webhook on the endpoint you want to trigger the webhook.
- Select the input type as Build.
- Select Bitbucket as the provider.
- Enter the authentication details for the Bitbucket webhook in the properties panel.
- Close the properties panel to save your changes.
The webhook will be triggered whenever the endpoint you attached it to is triggered.
You can receive the result of this webhook in the extensions field by enabling the wait for webhooks options in the Endpoint properties.