Shadow Merge Commit Build Status plugin not detecting pull request builds

Brad Mace [ATS]
Contributor
June 24, 2019

We've got TeamCity building our pull requests and publishing the results back to Bitbucket Server 6.3.0 using the Commit status publisher feature. This is working fine, but has minimal visibility within Bitbucket.

So I've tried installing the Shadow Merge plugin, but it doesn't detect any pull request builds from before it was installed, or any new builds triggered after it was installed. Is there something else we need to configure? The documentation seems to indicate all you have to do is install it and it will handle the rest.

2 answers

1 accepted

0 votes
Answer accepted
Brad Mace [ATS]
Contributor
November 7, 2019

Actual issue was that TeamCity's "Build Pull Request" feature actually builds the tip of the branch, and not the pull request.

Once we changed the Branch Filter in TeamCity to this

+:<default>
+:pull-requests/*/merge

it works as expected

0 votes
thomasmeschke
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 27, 2023

Hi Brad, 

this might be super outdated, but I stumbled accross your post while looking for some help with a similar problem. 

I installed the Add-On onto our Bitbucket Server, and ever since it letting me know that it cannot detect any recent Shadow Merge builds, and it is not building anything when a pull request is being created. 

Our build server is Bamboo, and I checked the git repo, it contains all those refs/pull-request/[id]/merge references that the Add-On seems to require. But I have no clue what to do or configure to make it fly and trigger some build from those refs. 

Do I have to create a separate build plan in Bamboo, do I have to adapt the existing ones running our tests? How do I tell shadow merger what commands to run in order to run our tests on the merge result of the PR-branch and the target branch? 

Would be super cool if there were any documentation on this, but unfortunately, there isn't. 

So... thank you in advance. 

All the best, 
Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events