I use Jenkins 2 with the Bitbucket Branch Source Plugin , which scans and builds all branches and PRs.
My problem is that when I click the code on PR, the branch is built twice (one for the branch and one for PR). I would like to build only a master and PR.
Does anyone know how to do this? I can not find documentation about this.
From Branch Indexing Log (with filter):
Checking branch branch-name from repo/project Met criteria Scheduled build for branch: branch-name ... Checking PR from repo/project and branch branch-name Met criteria Scheduled build for branch: PR-123
Then, when I try to filter on PR- *, nothing is scanned. I just get:
Checking branch branch-name from repo/project
source share