How to guess the branch from which the Build status updated was issued

Jorge Araya Navarro July 19, 2017

I wold like to know if there is a way to discern which branch in Bitbucket Pipelines triggers the a webhook with an Build status updated event. This information is not available inmediatly on the payload, so, I don't know where else to find it.

1 answer

1 accepted

0 votes
Answer accepted
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2017

Hi Jorge,

The repo:commit_status_updated event should have a refname field within the commit_status object. This will be the name of the branch that triggered the pipeline (if it was triggered by a branch commit. Pipelines can also be triggered by tags, and manually).

Do you see this field in the webhooks you have configured?

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events