I’m working on a merge check plugin, based on this tutorial, that should approve or reject the merge based on the build results.
There is documentation on how to get and change build results for a commit using the REST API. How can I get the build results from within a plugin?
Since I know build results are specific to a commit, I thought I might be able to get the information from
PullRequestMergeHookRequest#getFromRef() but I’m not able to find any route from there to a build result.
I haven’t been able to find any hints on working with build results at all in this forum or in the javadoc. I even poked around for class names in the UI that might give clues. Everything I can find on google relates to reporting results from third parties, not getting results internally, or build results in Bamboo rather than Bitbucket. (The results might come from Bamboo, sure, but they can also come from other places.)
Any pointers? Thanks.