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

The legacy build-status end-point is not marked as deprecated in API, causing confusion

XMLWordPrintable

      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

      1. Create a listener for RepositoryBuildStatusSetEvent
      2. Trigger job (Jenkins, Bamboo)
      3. 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}
       
      

              mgoyal2@atlassian.com Manish
              mwilliams@atlassian.com Mark A.
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: