-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
Please make the Bitbucket Branch Source plugin include statistics about failed, skipped, and successful tests in the build statuses that it posts to Bitbucket Server, or provide an extension point so that another plugin can add this information to the build statuses.
Bitbucket Cloud does not support such information in build statuses.
APIs are documented at:
- Bitbucket Server 7.4 deprecated (POST /rest/build-status/1.0/commits/{commitId}): https://docs.atlassian.com/bitbucket-server/rest/7.4.0/bitbucket-build-rest.html#idp6 – does not support test results
- Bitbucket Server 7.4 (POST /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/builds): https://docs.atlassian.com/bitbucket-server/rest/7.4.0/bitbucket-rest.html#idp219 – supports test results
- Bitbucket Data Center 9.0.4 deprecated (POST /build-status/latest/commits/{commitId}): https://developer.atlassian.com/server/bitbucket/rest/v904/api-group-deprecated/#api-build-status-latest-commits-commitid-post – claims to support test results
- Bitbucket Data Center 9.0.4 (POST /api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/builds): https://developer.atlassian.com/server/bitbucket/rest/v904/api-group-builds-and-deployments/#api-api-latest-projects-projectkey-repos-repositoryslug-commits-commitid-builds-post – supports test results
- Bitbucket Cloud (POST
/repositories/{workspace}/{repo_slug}/commit/{commit}/statuses/build): https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commit-statuses/#api-repositories-workspace-repo-slug-commit-commit-statuses-build-post – does not support test results - more links at https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/621
If implemented in the Bitbucket Branch Source plugin itself, then this would need an a dependency on JUnit. It could be an optional dependency.