-
Notifications
You must be signed in to change notification settings - Fork 53
Description
What feature do you want to see added?
Use the new build status API that was added in Bitbucket Server 7.4. It differs from the old API in the following ways:
-
The old API is at /rest/api/1.0/build-status/latest/commits/{commitId}, and the new API is at /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/builds.
The new {projectKey} and {repositorySlug} parameters would complicate fixing JENKINS-66620; see Send build completion notification for pull requests merged after build start bitbucket-branch-source-plugin#472 (comment).
-
The user of the old API only needs to be LICENSED. The user of the new API needs REPO_READ permission.
-
Build statuses that were added via the new API can be deleted later.
The plugin could then be changed to delete build statuses of aborted builds, as suggested in Send build completion notification for pull requests merged after build start bitbucket-branch-source-plugin#472 (comment).
Upstream changes
- https://developer.atlassian.com/server/bitbucket/reference/api-changelog/#new-rich-build-status
- [BSERV-11393] Allow the ability to remove Build Status for a commit.
- [BSERV-13116] Update the "Updating build status for commits" with the information about new API
- [BSERV-13381] The legacy build-status end-point is not marked as deprecated in API, causing confusion