-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: bitbucket-branch-source-plugin
-
None
-
Environment:bitbucket-branch-source-plugin: 937.3.10
Bitbucket Server
Since https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/1060 PRs are scanned before branches.
Unfortunately this causes massive delays for some of our repos branch builds. The affected repos have a large number of open PRs, around 100 at all times, which are all scanned but almost none built as we don't rebuild on target ref changes.
The pain is that when a PR is merged to main, all PRs are scanned first, which sometimes takes up to 5 minutes and then finally main is built.
The obvious solution in my opinion would be to allow to configure whether branches or PRs should be processed first.
Currently I also have a bit of a hard time understanding why PRs should be prioritized above the branch that was actually changed in an event, maybe prioritizing the build of the affected branch could be an alternate solution to this?