When building pull requests in a multibranch pipeline with the Bitbucket branch source plugin, IMO the merge order is wrong which leads to wrong change view information of the job.
My PR in Bitbucket is set up to merge a task branch into the master branch. The jenkins build console says:
{code}
Merging remotes/upstream/master commit 49055790acff662de787b04ac7b253140be04b81 into PR head commit 5ea5ad23180c6b9b3c0876fc21f8238a293eb4a0
{code}
The problem is that because of the wrong merge order, the commits of the actual task branch aren't shown in the changes "view" (<jenkins-url>/job/<jobname>/view/change-requests/job/<PR-ID>/changes). Only the latest master commits are shown.
Because of this, the wrong changes (latest of the master branch) are notified to the PR within the Bitbucket server (e.g. build information of a branch which has been merged before into the master branch) which confuses our developers.
My setup: CentOS 7, Jenkins 2.138.3, bitbucket-branch-source-plugin 2.2.16, Bitbucket Server 5.16.0, Bitbucket Server Jenkins Webhook Plugin (because this can be configured for a whole Bitbucket project at once and not for each git repository of the project