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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Nested steps inside a parallel step?


It is possible to have nested steps inside a parallel step?


I want to have something like that:

- step: script: - ./ --batch 1 - parallel: - step: script: - ./ --batch 2 - step:
- step: script: - ./ - step: script: - ./ --batch 3


2 answers

1 accepted

0 votes
Answer accepted

Hello @Anton Usov,

Nested steps (a step inside of a step) are not allowed anywhere in the file, not just inside of parallel.

Basically, all steps can have just two levels: top-level sequentially executed steps and steps inside of parallel section, which are executed concurrently.

My guess is that your goal is to execute multiple steps sequentially within a parallel section. If so, unfortunately it is not possible in Pipelines at the moment. The only way to keep parallelism would be to prepare a Docker image that every nested step could run with, and then squash sequential steps into one.

Hope this helps. Let me know if you have any questions.


Thank you!
I actually expected an answer like that.


@Anton Usov @ and what about 2 parallel sections that are run sequentially
its not nested but actually can postpone some parallel runs..
Something like this:

    - parallel:
        - step:
              - ./
        - step:
script: - ./
- parallel: - step: script: - ./ - step:
script: - ./


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,921 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you