Create
cancel
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

Is it possible to have build steps that are parallel in a runner?

Edited

In a Runner setup the following steps don't run in parallel. One will run and the other is queued.

pipelines:  
  custom:    
    customPipelineWithRunnerStep:      
      - parallel:        
        - step:
          name: Build 1
size: 2x #8 GB
runs-on:
- 'build'
- 'test'
- 'self.hosted'
- 'linux'
services:
- docker
caches:
- docker
- dotnetcore       

          script:
            build.sh
        - step:
          name: Build 2
size: 2x #8 GB         

runs-on:
- 'build'
- 'test'
- 'self.hosted'
- 'linux'
services:
- docker
caches:
- docker
- dotnetcore  

          script:
            build.sh

          

1 answer

0 votes
Syahrul Atlassian Team Jan 12, 2022

Hi @Martin Nicolaides 

G'Day!

Each step uses one runner that has been configured. If you run parallel steps, you are running multiple steps at the same time so it will look for all available runners. 

However, if you only have one runner configured then this will cause the parallel step to queue up because it's waiting for the first steps to complete so it frees up the runner. This will repeat each parallel step until all steps are complete.

If you wish to have all parallel steps run together then you'll have to add more runners. For example, you have 5 parallel steps, you need to add 5 runners so that when the parallel steps run it has 5 available runner resources.

I hope this clarifies, let me know if you have any additional questions.

I hope this clarifies.

Cheers,
Syahrul

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

221 views 2 5
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