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:
However, in JIRA when a new pipeline runs, JIRA only shows the pipeline build and not my custom build, like so:
Is there a way I can display the custom build status I created in JIRA?
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.