Forums

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

How to pass build result to commit on Bitbucket 6.0?

Heather Z
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!
March 9, 2020

I am using Bitbucket server 6.0, and I want to use "Minimum successful builds" to do
Checks for merging pull requests.


My question is, how to pass build result to commit or pull request?

I plan to use Jenkins run CI test, is there any API to set build result to commit?


I found this configuration from this link, but can't find how to pass build result to commit.
https://confluence.atlassian.com/bitbucketserver060/checks-for-merging-pull-requests-967326573.html


Thanks!

1 answer

0 votes
Maciej Adamczak
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 17, 2020

Hey @Heather Z , you can use the Builds REST API from this page to populate the results of the build manually:
https://developer.atlassian.com/server/bitbucket/reference/rest-api/

What you need to do is to send a POST resuqest to "/rest/build-status/1.0/commits/{commitId}" resource in your Bitbucket instance:
https://docs.atlassian.com/bitbucket-server/rest/7.0.1/bitbucket-build-rest.html#idp8

 

Thanks,
Maciej

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events