We are unable to merge any pull requests if any changes have been made to the target branch. Here's a basic example that happens every day:
We are unable to merge pull requests if ANY changes were made to the target branch after the pull request was created. I would expect it to deny the merge if there were actual merge conflicts, but it happens every time whether there are merge conflicts or not.
We are on Bitbucket Server 5.9.
Hi Jon,
What happens when you re-try your merge attempt after some time?
There is a known Bitbucket Server issue. When the target branch is updated, Bitbucket starts background re-scoping to update all pull requests opened against this branch. While re-scoping is running, other pull request will fail to merge.
Here is the issue I am referring to: https://jira.atlassian.com/browse/BSERV-9709
I just tried again today and it still doesn't merge. Is it possible the background re-scoping is failing on our server? How do we troubleshoot that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the problem persists, then something is wrong with the server. I recommend to raise a support request. They will be able to analyse your log files and solve the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know this is an old thread, but we experience this often. As this is still indexed on google, I though this might be useful for others.
I found that pushing directly to your target branch resolves this issue. You would need to adjust your settings in the repo to allow direct pushes if you have prevented this.
Eg.
PR from feature/abc -> develop
clicking merge on BB server UI fails with above error.
on local env:
After this, bitbucket will automatically mark the original PR as merged, and you should be able to merge any other PR's now without issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.