The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Build status keys from commit Id using Bitbucket REST API

Sebastien Ashby
November 28, 2023

Hi,

I wish to use the Bitbucket REST API to GET build statuses.
To request "get a specific build status" I need to provide parameters

  • projectKey
  • commitId
  • repositorySlug
  • key

My challenge is on how to get the build status "keys" associated with the "commitId".
I am aware of the request "get build statuses for commit", but it indicates that its deprecated.
This with the comment:

  • "Deprecated in 7.14, please use the repository based builds resource instead."

I don't see any entries in the "repository based builds resource" which allow me to get the build statuses for a commit.
What am I expected to use?
Please help...

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Naveen Kumar_Appfire
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 18, 2024

Hi @Sebastien Ashby

It is possible to get a build status commit using the Bitbucket Command Line Interface (CLI) 

Also, please refer to this article for more info Bitbucket CLI examples 

TAGS
AUG Leaders

Atlassian Community Events