I'm using Jenkins 2 with the Bitbucket Branch Source Plugin which scans and builds all the branches and PRs.
My problem is that when I push code to a PR, the branch is built twice (one for the branch and one for the PR). I would like to build only master and PRs.
Do someone knows how to do that ? I can't find any documentation about this.
From the Branch Indexing Log
(wihtout 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
PR-.*
nothing is scanned – Consanguineous