Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Show custom build status in JIRA

Mohamed Zoweil
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 16, 2021

I have created a step in my BitBucket pipeline to post a custom build status "Deployed App", this is how it looks in the pull request page:

PR_View.png

 

However, in JIRA when a new pipeline runs, JIRA only shows the pipeline build and not my custom build, like so:

jira_view.pngIs there a way I can display the custom build status I created in JIRA?

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 17, 2021

Hello @Mohamed Zoweil ,

Welcome to the Atlassian Community!

Pipelines pushes data to Jira, so they decide which data. So, I am moving this thread to the Bitbucket pipelines section.

Also, I have asked the pipeline team about your issue and they would like to know more on how you created the custom build status: did you post directly to the commits endpoint as documented in Updating Build Status for Commits or anything else?

In case you did, then this could be a bitbucket core issue (because it is related to how bitbucket deals with the commitStatuses received) and we'll have to further look into it. 

 

Please let us know.

 

Cheers,
Dario

Mohamed Zoweil
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!
February 19, 2021

Hi Dario,

 

Thanks for replying.

I created the build status by posting to the commit end point in my pipeline, like so:

- export BUILD_STATUS="{\"key\":\"deploy_link\", \"state\":\"SUCCESSFUL\", \"name\":\"Deployed App\", \"url\":\"${DEPLOY_LINK}\"}"

- curl -H "Content-Type:application/json" -X POST --user "${BB_AUTH_STRING}" -d "${BUILD_STATUS}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/commit/${BITBUCKET_COMMIT}/statuses/build"

Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 26, 2021

Hi @Mohamed Zoweil ,

Since this issue needs further investigation I have created below support request on your behalf:

Please follow-up in there and, once solved, it would be nice if you can copy the solution in here too so that it may be useful for other customers facing similar issues.

 

Cheers,
Dario

Like Mohamed Zoweil likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events