How to prevent a Bitbucket build from running on every change in the Bitbucket Pull Requests

Ankita Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 4, 2025

 

I have a repository on bitbucket which initiates a build to run on every change I make to the bitbucket UI like adding reviews, changing description etc. I want the build pipeline to only run when I am updating the code after git commit/ git push.

1 answer

0 votes
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2025

Hi @Ankita Singh

The build is typically triggered using a Bitbucket webhook. You can configure the webhook to  trigger using the repo:push or pull request update events. Bitbucket will emit an 'update' event for any of the changes you mentioned. It doesn't provide more granular events out of the box though. You could try to set it to repo:push only and see if fits your needs.

Otherwise, we provide an Bitbucket app, Flowie, that adds support for greater flexibility and control to when the builds are triggered. You can use set it to trigger the PR build only when there are code changes and no conflicts, for instance. Or just trigger integration builds once there is a review. If you are interest get in touch support@flowie.app and we are happy to assist you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events