Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Show custom build status in JIRA

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

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 Feb 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
Site Admin
TAGS
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

180 views 2 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you