pull-request-notifier-for-bitbucket icon indicating copy to clipboard operation
pull-request-notifier-for-bitbucket copied to clipboard

Could we get the current pull-request build status (FAILURE or SUCCESS) as variable?

Open ThaKing opened this issue 7 years ago • 5 comments

Could we get the current pull-request build status (FAILURE or SUCCESS) as some variable like ${PULL_REQUEST_BUILD_STATUS} ?

ThaKing avatar Feb 07 '18 14:02 ThaKing

Should be no problem, if it can be found in the API:s.

tomasbjerre avatar Feb 08 '18 06:02 tomasbjerre

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)

ThaKing avatar Feb 08 '18 14:02 ThaKing

It would need to be exposed in the backend API https://docs.atlassian.com/bitbucket-server/javadoc/5.7.0/api/reference/packages.html

tomasbjerre avatar Feb 08 '18 15:02 tomasbjerre

Ohhh, I see

ThaKing avatar Feb 09 '18 18:02 ThaKing

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".

dcsobral avatar Nov 27 '18 17:11 dcsobral