Configuring a Webhook in BitBucket

A. Create a Webhook API token from ARM

  1. Log in to ARM.

  2. Click on Admin Section -> API Token.

  3. Click on Create API Token.

  1. Enter the token name.

  2. Select Type as “webhook.”

  3. Enter Description if required.

  4. Click on Create Option.

  1. Your New API Token is created.

B. Create a webhook with authentication in Bitbucket

  1. Log in to your Bitbucket account and select a Repository in which you want to configure a Webhook.

  1. Click Settings and select Webhooks.

  2. Next, enter the URL in the given format: <instance_url>/api/webhook/v2/<orgname>/trigger-scm-push-request For example, if the instance is https://login.autorabit.com, then the payload URL would be: https://login.autorabit.com/api/webhook/v2/autorabit.com/trigger-scm-push-request

  1. Now fill in the details and click Save.

Smart Commits

In this section, you can select the pattern used to read the comment in a revision associated with your ALM story. For example, 'git commit m [project123] # add README file into the project'

If you want to configure a webhook in your repository, select the 'Enable auto update on webhook' checkbox to reveal the URL required for the webhook settings. For more information on how to configure a webhook in different repositories, refer HERE. You can also choose to sync external smart commits.

For Enterprise customers

/api/webhook/v2/<orgname>/enterprise/trigger-scm-push-request

/api/webhook/v2/<orgname>/enterprise/sync-alm-commits

Last updated