PullRequest Jenkins Build Check

Mike Snodgrass October 23, 2020

We were using Stash Pullrequest Builder for our Jenkins pipelines, to perform a shallow merge and validate that the code would compile successfully with a merge.  This was working until we upgraded from Bitbucket Data Center 6.9.x to 7.6.  

I see that there was a change for Bitbucket beginning at version 7.0 and believe this is why the Stash Pullrequest Builder began failing post upgrade of Bitbucket Data Center.  The documentation states:

  • Bitbucket Server 7.0 removed support for 3-way diffs for pull requests, and with that change refs/pull-requests/*/merge is no longer created or maintained. As pull requests that have merge refs are updated, the merge ref will be deleted (whether the pull request merges without conflicts or not). Since there is no longer a merge ref that CI systems can build, there are no build statuses to detect.

Is there another way to perform a test build of a merge, before allowing the merge to complete, via Jenkins, that others have used with Server/Data Center 7.x?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.6.0
TAGS
AUG Leaders

Atlassian Community Events