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

Delete/Pass an In-progress build in bitbucket which is already deleted from Jenkins pipeline.

Sumnesh Lakhiwal May 7, 2023

Hi All,

I had a build in Jenkins for example #732. The build got successful in Jenkins but Jenkins unable to notify bitbucket due to some network issue. 

Now, in bitbucket, that build(#732) is still going on and on and showing in progress. Due to which I am not able to merge my other changes to the branch because on each new PR raised the bicbucket is picking the same failed build (#732) and expecting to be successful. Since we are showing only last 5 builds in the Jenkins list and remove the older builds from the list, the build #732 is not availale now.

 

In the above scenario, is there any way to delete the in progress (#732) build from bitbucket?

 

I tried below URL to resolve it. But it would create a new buid with the respective commit id, but not doing anything related to stucking build, the build #732 in my case.

https://developer.atlassian.com/server/bitbucket/how-tos/updating-build-status-for-commits/

 

Please help.

1 answer

0 votes
Erez Maadani
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.
May 8, 2023

Hi @Sumnesh Lakhiwal 

The given URL will help you mark the build as successful.

Are you sure you've used the same key and same commit?

You can use this API to fetch the builds for a specific commit: https://developer.atlassian.com/server/bitbucket/rest/v810/api-group-builds-and-deployments/#api-api-latest-projects-projectkey-repos-repositoryslug-commits-commitid-builds-get 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events