What does Bitbucket count as a "build" when doing a merge check for "# of passed builds" on pull requests?
We have Bamboo build plans tied to various branches of our repositories, which are kicked off when new commits are pushed to those branches. The Bamboo build plan is responsible for building Docker images, etc. These builds show up in Bitbucket.
I would like to create a Bitbucket Pipeline that runs some code linting when a pull request is created or updated. If the linting fails, I want to block the PR from being merged, even if a Bamboo build succeeded. Does a successful run of a pipeline count as a "build"?
How do I get the PR to block merging if the linting script exits with a non-zero status code? Can I make Bitbucket distinguish between a Bamboo build and a Pipeline run?