Forums

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

Retry pipeline for all the errors except test case failures

shashank_pandey May 19, 2025

Is there a was to retry pipeline only for those errors except "Test Case Failures". I don't want to retry for test case failures, for other failures retry it.

 

Is there a method provided by bitbucket to do this? or i have to write a script?

 

on-fail:
strategy: retry
maxRetryCount: 2

1 answer

1 accepted

0 votes
Answer accepted
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2025

Hi shashank_pandey,

The documentation below describes the capability of step failure strategies:

Unfortunately, it is limited in that it will consider any and all failures as part of the logic - it does not allow for customisation to consider only certain types of failures.

Therefore, you would need to write a script in this instance.

Cheers!

- Ben (Bitbucket Cloud Support)

 

shashank_pandey July 1, 2025

@Ben Thanks 

Suggest an answer

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

Atlassian Community Events