-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
11
-
Issue Summary
This is reproducible on Data Center: yes
Since the deprecation of the REST endpoint to obtain the build status of a given commit, no alternative was offered.
Steps to Reproduce
N/A
Expected Results
Use the REST API to obtain the list of builds pertaining to a commit.
Actual Results
There's no current alternative, although the unsupported endpoint still works (see below).
Workaround
As of Bitbucket 8.19.9 there are the following unsupported alternatives:
curl -vv -u <admin-user>:<admin-password> --header 'Accept: application/json' -X GET "https://<bitbucket-url>/rest/build-status/latest/commits/<commit-hash>"
Or:
curl -vv -u <admin-user>:<admin-password> --header 'Accept: application/json' -X GET "https://<bitbucket-url>/projects/<project-slug>/repos/<repo-slug>/builds?at=<commit-hash>"