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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,352
Community Members
 
Community Events
184
Community Groups

Nested steps inside a parallel step?

Edited

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

 

I want to have something like that:

pipelines:
  default:
- step: script: - ./integration-tests.sh --batch 1 - parallel: - step: script: - ./integration-tests.sh --batch 2 - step:
- step: script: - ./deploy.sh - step: script: - ./integration-tests.sh --batch 3

 

2 answers

1 accepted

2 votes
Answer accepted
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 19, 2020

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.

Cheers,
Daniil

Thank you!
I actually expected an answer like that.

Cheers,
Anton

@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:

pipelines:
  default:
    - parallel:
        - step:
            script:
              - ./parallel1-before.sh
        - step:
script: - ./parallel2-before.sh
- parallel: - step: script: - ./parallel1-after.sh - step:
script: - ./parallel2-after.sh

 

That's what I ended up doing.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events