Pull request links to a non related failed build

In one of the pull requests a ticket is referenced with a bad build. However, this does not have the same build key. There are also no references to this ticket in the commits.Why are other build results displayed in the pull request.

It's confusing users as the build appears to be failed.

Configuration: Bitbucket 4.8.x / Bamboo 5.12.1 / JIRA 7.0.2

image2016-10-3 9:12:39.png

1 answer

1 accepted

1 vote
Accepted answer
Adam Ahmed Atlassian Team Oct 03, 2016

Hi Marc,

On the Bitbucket side, we don't do anything smart with those results. We basically accept build statuses (including build names as an arbitrary string) via REST that are mapped to a commit hash. We then show the build statuses that are linked to the commit at the head of the source branch of the pull request.

Judging from the format you have there, I suspect that someone named their branch IP-1709-**** and branched off the head commit of this PR, and pushed it up for Bamboo to grab. Bamboo then built the branch plan and sent Bitbucket Server results for this commit, which failed. Since Bamboo was building the branch plan for a branch named IP-1709-***, when it sent us the name of the build, it included that branch name in the arbitrary string.

So ultimately there is some build that failed against the HEAD commit of your branch, and that might be something to worry about. Perhaps the build is flakey, or that branch plan is running different tests, but those both definitely should be cause for alarm. A third possibility is that the branch plan was simply misconfigured and that shouldn't be a cause for alarm.

Does that make sense?



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,906 views 7 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you