Forums

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

Retry the step only on the System Error

skaul
February 2, 2026

So i am referring to the blog posts here

  1. Introducing step failure strategies in Bitbucket Pipelines - Work Life by Atlassian
  2. Introducing the “retry” step failure strategy for Bitbucket Pipelines - Work Life by Atlassian

My step, in sense of flow looks, something like follows:

    - step: &StepName
        name: StepName
        runs-on:
          - self.hosted
          - linux
        image:
          name: $JFROG_DOCKER_URL
          username: $JFROG_DOCKER_PULL_USERNAME
          password: $JFROG_DOCKER_PULL_PASSWORD
        script:
          # Run your commands inside the Docker container
- My commands goes here
        on-fail:
          strategy: retry
          maxRetryCount: 5

Following the same structure as above there are multiple steps in the pipeline.

What i am unable to find out is i only want to retry the step if the bitbucket pipelines reports a SYSTEM ERROR. 

If it is a genuine failure of the step it should not repeat the step. 

Is there a condition that has to be added or is available that i can use as the documentation is not very clear on the on-fail strategy on what all it can have.

Note i found a discussion from the previous year here New Feature: Step Failure Strategies - Atlassian Community not sure if it was considered without raising any official feature request. 

2 answers

0 votes
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2026

Hello, Good day. Checking from my end, I see you are part of two different workspace. Could you please point me to the workspace with this issue, so that I can route to concern team. Thanks!

0 votes
Kristian Walker _Adaptavist_
Community Champion
February 3, 2026

Hi Skaul,

I have clicked the request assistance button to notify Atlassian Support of this request so they can look to answer this question for yourself.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events