Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Stage name in pipelines webhook

jonvines
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!
January 2, 2019

I'm trying to capture webhooks for when the pipeline is created and updated as per https://confluence.atlassian.com/bitbucket/event-payloads-740262817.html#EventPayloads-Updated

I'm wondering if there is any way to discern which stage is in progress, completed or failed. It seems very generic at the moment. At the moment the response object looks like so:

{
"commit_status" : {
key:"-1081267614"
description:""
repository:Object
url:"https://bitbucket.org/<redacted>/webhooktest/addon/pipelines/home#!/resu..."
links:Object
refname:"master"
state:"INPROGRESS"
created_on :"2019-01-02T11:57:47.272325+00:00"
commit:Object
updated_on:"2019-01-02T11:57:47.272364+00:00"
type:"build"
name:"Pipeline #2 for master"
}
}

I've not even got a uuid to use to query the bitbucket API to get these details if I needed to.

Any ideas on how I can use this data to the stage of the pipeline step currently underway?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events