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 dynamically create parallel steps based on artifact of previous step?

We have a monorepo and need to be able to build multiple containers in parallel. However, how many we need to build will change each time to pipeline is run. so I have the following logic:


generate list of containers to build --> generate parallel steps --> run the parallel steps


pipelines:  default:      
generate list of changed services          
the list      
script: create parallel steps    
parallel:        \
stepbuild container #1        
stepbuild container #2


is this possible in bitbucket pipelines?

1 answer

1 accepted

0 votes
Answer accepted

@Eytan Yammer Currently Bitbucket Pipelines doesn't support dynamic parallel steps. Are the max containers a constant? If that is the case, I would suggest having a step for all the containers and skipping them if it's not required to build the container based on the artifact. 

Thanks. For the time being the number of container won't be changing every day but it will be growing steadily over the next several months. 


What I've decided to do was the following. 


pipelines:  default:    


   - step:         

      nameBuild container1




        - path/to/container1/code/**

   - step:         

      nameBuild container2




        - path/to/container2/code/** 


this will have to do for the time being. Thanks for the help. 

Like Justin Thomas likes this

Suggest an answer

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

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

380 views 13 14
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