Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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 Leaders.
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 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events