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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Parallel sub-steps

Hi,

This is my pipeline.

In the parallel steps, I want to have two steps run one after another. Its like having sequential two steps within one parallel. Is this possible?

pull-requests:
'**':
- step: *build
- parallel:
- step: *chromeAPI
- step: *chrome69API
# how do I split this step into two steps so test2 is run after test1?
- step:
name: 'tests 1 and 2'
caches:
- node
- npm
services:
- docker
script:
- npm ci
- npm run test1
- npm run test2

 

 

1 answer

1 accepted

0 votes
Answer accepted

In `parallel` all `step`s run parallel, there is no way inside parallel to have two steps not parallel.

However as long as test 1 and test 2 run with the same image it should be possible to have them in a single step so that test 2 would run after test 1. Just like you outline it already, however I don't know why you now need two steps for it so can't share more ideas or know about your limitations.

I just thought it will be visually nicer to see two steps. Also if one step fails, I can just run the failed step.

It's okay. I just want to know whether it is possible.

I see now, good point about the failed step and re-running.

This would require to have an additional grouping of steps next to parallel to have them sequential explicitly. No such option exists thought unfortunately (yet).

However there exists a Jira ticket for a feature request:

Suggest an answer

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

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,328 views 0 3
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