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!
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.