This article explains how to manually create the Bitbucket webhooks Gearset needs to run CI jobs and Pipelines.
Gearset usually creates these webhooks automatically. If your Bitbucket permissions or internal security policy prevent Gearset from creating them, you can create them manually using the payload URL shown in Gearset.
Before you start
You’ll need:
Admin access to the Bitbucket repository.
The payload URL shown in Gearset.
You can check how the webhooks are setup for a CI job from this article.
Pipeline webhooks
To set up the webhook for this Pipeline:
In Bitbucket, go to the repository used by the Pipeline.
Go to Repository settings → Webhooks.
Click Add webhook.
Enter a title, for example
Gearset Pipeline webhook.Set the URL field to the payload URL shown in Gearset.
Leave the webhook enabled.
Under Repository, leave Push checked.
Under Pull Request, check Created, Updated, Merged and Declined.
Save the webhook.
After completing these steps, you should see one new webhook in Bitbucket for the Pipeline.
The Pipeline webhook should use the URL provided on your Gearset Pipeline. The URL should include /pipeline.
CI job webhooks
Gearset needs one webhook to run all CI jobs for the same repository. This is part of Gearset’s webhook pooling behaviour: one repository webhook can trigger the relevant CI job by checking the event type, repository, and branch.
To set up the webhook for CI jobs:
In Bitbucket, go to the repository used by the CI job.
Go to Repository settings → Webhooks.
Click Add webhook.
Enter a title, for example
Gearset CI job webhook.Set the URL field to the payload URL shown in Gearset.
Leave the webhook enabled.
Under Repository, leave Push checked.
Under Pull Request, check Created, Updated, Merged and Declined.
Save the webhook.
After completing these steps, you should see one new webhook in Bitbucket for CI jobs.
The CI job webhook should use the URL provided in the Gearset CI job setup. The URL should include /continuous-integration-job.
How many Bitbucket webhooks should I have?
For a repository using both CI jobs and a Pipeline, you should usually have two Gearset webhooks in Bitbucket: Gearset uses webhook pooling, so one Bitbucket CI job webhook can be shared by multiple CI jobs in the same pipeline. If you’re using a Pipeline with multiple CI jobs, you should still open the webhook setup dialog for each CI job in the Pipeline.
Webhook | Purpose | URL includes |
Gearset CI job webhook | Runs CI jobs for the repository |
|
Gearset Pipeline webhook | Allows the Pipeline to respond to repository events |
|


