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

REST docs for POSTing a build status is missing two states

XMLWordPrintable

      Issue Summary

      As part of 8.0 we introduced two new BuildStates Cancelled and UNKNOWN but the documentation for POSTing buildstatuses was not updated accordingly:
      https://developer.atlassian.com/server/bitbucket/rest/v811/api-group-builds-and-deployments/#api-api-latest-projects-projectkey-repos-repositoryslug-commits-commitid-builds-post
      It does not mention the two new statuses. The Swagger docs for
      com.atlassian.stash.internal.build.status.rest.BuildStatusResource#addBuildStatus needs to be updated

      Steps to Reproduce

      1. go to https://developer.atlassian.com/server/bitbucket/rest/v811/api-group-builds-and-deployments/#api-api-latest-projects-projectkey-repos-repositoryslug-commits-commitid-builds-post

      Expected Results

      All valid statues are listed so that I know which ones I can send

      Actual Results

      I can only see the 
      SUCCESSFUL,  INPROGRESS. and FAILED

      Workaround

      Post  CANCELLED or  UNKNOWN  for build state and it works, but the documentation does not help me find this out (and as such I may not know if it is actually a supported state)

              c95a692b3157 Stanley Su
              dkjellin Daniel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: