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

Is there a way to list all commits on one deployment build?

Ahmed Eldably
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 14, 2024

Hi,

I am currently working with Bitbucket API to automate some processes to calculate the cycle time of features.

I wonder if there's a way to get the commits on a certain deployment. I read the documentation about the pipelines and deployments endpoints, but I only got the merge commit to the deployment branch.

Please let me know if there's a way.

I appreciate any help you can provide.

2 answers

1 accepted

3 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 15, 2024

Hi @Ahmed Eldably and welcome to the community!

The pipelines and deployments API endpoints will only return the commit that triggered the build or deployment. I'm afraid it is not possible to get that info via API.

I can create a feature request for our development team to consider. Could you please confirm first: when you say all commits on a deployment, do you mean all commits that were included in the push that triggered the deployment?

Kind regards,
Theodora

Ahmed Eldably
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 9, 2024

Hi @Theodora Boudale

 

Thanks a lot for your reply!

More specifically, in our case, the pipeline gets triggered with the merge commit from branch_x to the main branch on a certain deployment environment. So in this case we have other commits that also make their way into the production environment (for example).

It is useful for us to access all these commits to make some calculations related to feature tracking. Could you make a feature request, please?

Kind regards,
Ahmed

1 vote
Vishaal Kant March 16, 2024

I have the similar requirement. I wanted to know the commits that were checked in into the branch before the pipeline triggered. From the pipeline I wanted to fetch all the commits from that pipeline. Is. there any workaround on a short term which can be implemented to get the commits using the Bitbucket API?  

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events