Yaml anchors, stages, and parallel steps - supported?

Nate Loiselle January 9, 2025

I am trying to make use of YAML anchors, with different stages, and parallel steps in each stage (not parallel stages).

I have something like the following setup, but it does not seem to work and I want to know if what I am trying to do is supported:

 

pipelines:
custom:
Test Pipeline:
- stage:
name: Do multiple things
deployment: development
steps:
- step: *step1
- step: *step2
parallel:
- step: *pStep1
- step: *pStep2
- step: *pStep3

1 answer

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2025

@Nate Loiselle Generally speaking, YAML anchors are supported to eliminate repeating blocks in the YAML.

Have a look at the official doc, it should help: https://support.atlassian.com/bitbucket-cloud/docs/yaml-anchors/

Nate Loiselle January 10, 2025

The issue I am running into though is with the parallel steps within stage, within the anchor

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 12, 2025

Hi @Nate Loiselle 

May we know the error you're seeing in pipelines?

Cheers!

- Ben (Bitbucket Cloud Support)

Nate Loiselle January 13, 2025

I have attached a screenshot of the error I getScreenshot 2025-01-13 at 11.25.12 AM.png

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 13, 2025

Thanks @Nate Loiselle 

Unfortunately, parallel stages are not supported in stages - we have a feature request that you can Watch/Vote for to track progress and increase its visibility with regard to customer demand:

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events