Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-19724

Provide a new API endpoint to obtain all the builds for a given commit

XMLWordPrintable

    • 11
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

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

              Unassigned Unassigned
              42b287c0a49d Marco Araújo
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: