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,554,044
Community Members
 
Community Events
184
Community Groups

is it possible to dynamically create parallel steps?

As we add new (unit and Cypress) tests to our repo, the the PR build time grows. We've tried manually splitting them into multiple steps but this doesn't scale. 

We tried using https://github.com/bahmutov/cypress-split but saw no change in run times.

Most recently we manually created parallel steps for Cypress steps but as mentioned this won't scale as our app grows.

Is it possible to dynamically create steps in a pipeline?

1 answer

1 accepted

0 votes
Answer accepted
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 02, 2023

Hi @Bill Lazar,

Thank you for reaching out to the community.

Unfortunately, it is not possible to create dynamic steps in Bitbucket Cloud Pipelines.
However, you can try to programmatically update your bitbucket-pipelines.yml file by editing the file adding steps and pushing it to your repository using the below API endpoint.

POST /2.0/repositories/{workspace}/{repo_slug}/src

API Reference here

Hope it helps and do let me know if you have further questions.

Regards,
Mark C

Doesn't really help but thank for the answer.

It does help, bit it needs more development of your own. You have to run a pre-push script that updates the "parallel" section inside pipelines.yml based on your existing tests and use cases. Then you push that change with this endpoint

Thanks but I'm not going to do that.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events