-
Bug
-
Resolution: Fixed
-
Low
-
8.2.0
-
None
-
1
-
Severity 3 - Minor
-
Issue Summary
In 8.x, the build-status endpoint does not publish information for event RepositoryBuildStatusSetEvent:
/rest/build-status/1.0/commits
The above end-point appears that it may be deprecated but it is not marked as such in the API documentation, causing users and plugin developers to continue using the incorrect API.
This is reproducible on Data Center: (yes)
Steps to Reproduce
- Create a listener for RepositoryBuildStatusSetEvent
- Trigger job (Jenkins, Bamboo)
- Call endpoint /rest/build-status/1.0/commits
Expected Results
Even for RepositoryBuildStatusSetEvent is published.
Actual Results
Event for RepositoryBuildStatusSetEvent is NOT published.
In 7.4 of Bitbucket, a new end-point was added for build-status information and publishes the expected event.
Source: https://developer.atlassian.com/server/bitbucket/reference/api-changelog/#new-rich-build-status
Workaround
The resolution is to use the new end-point added in 7.4:
POST /rest/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}
- mentioned in
-
Page Loading...