We have our build pipeline set up with Team City (version 2017.1.5) and we use on-premise Bitbucket server (version 4.8) for our git repository. Our branching model is GitHub Flow

We use mendhak Team City plugin to report build status to Bitbucket server. Additionally, we have created a build in team city to build pull request with branch trigger: +:refs/(pull-requests/*)/merge .

However, the build status for this branch filter is not visible in the Bitbucket the pull request window/page.

If we use the branch filter on the feature branch (eg. +:refs/heads/(feature/*) ), the build status is shown correctly on the PR. But, we are interested to display PR build status on our Pull Requests.

We found out that there is already an open issue with Atlassian since 2013 (yes - almost 5 years). It looks like it would not be fixed any time soon.

Ask:

Are there any workarounds or Bitbucket plugins (or Team City plugins) available which can solve this issue. We want to avoid adding any additional branch filter/ trigger.

I feel it is fairly common problem and it should have already been solved by many other teams/ individuals. I just not happen to find out right resource/ material.

Any pointers, is highly appreciated.