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
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?


Cheers,

Adam

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

29,309 views 26 12
Join discussion

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