pull-request-notifier-for-bitbucket
pull-request-notifier-for-bitbucket copied to clipboard
Could we get the current pull-request build status (FAILURE or SUCCESS) as variable?
Could we get the current pull-request build status (FAILURE or SUCCESS) as some variable like ${PULL_REQUEST_BUILD_STATUS} ?
Should be no problem, if it can be found in the API:s.
Yeah, it's here https://docs.atlassian.com/bitbucket-server/rest/4.0.0/bitbucket-build-rest.html#idp26432 I think it should be the last commit in current Pull Request, and the summary of all builds. Because we can get few builds result for current commit. If 3 builds are green => result should be green (PASSED), if one of 3 builds is red => result should be red (FAILED)
It would need to be exposed in the backend API https://docs.atlassian.com/bitbucket-server/javadoc/5.7.0/api/reference/packages.html
Ohhh, I see
Build status is attached to the commit. I looked briefly, and "summary" might be what @ThaKing is looking for. I happen to want more stuff in a request issue I'm opening, which might be found in "enrich".