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,551,908
Community Members
 
Community Events
184
Community Groups

define and calling stage using yaml anchors

Is it possible to define a stage under definations and call like steps. ?

 

https://support.atlassian.com/bitbucket-cloud/docs/yaml-anchors/

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 16, 2023

Hi @Prashantanu Singh Rathore (Temp),

Thank you for reaching out to the community.

Indeed, it is possible to use stages as anchors.
Here's an example way to do it as mentioned in this other community post:

definitions:
  steps:
    - step: &just-a-step
        name: Do the thing
        script:
          - echo 'Doing the thing'
  stages:
    - stage: &my-awesome-stage
        name: My awesome stage
        steps:
          - step: *just-a-step

pipelines:
  branches:
    master:
      - stage: *my-awesome-stage

Hope it helps and let me know how it goes.

Regards,
Mark C

Thanks its working. I tried for paraller step exuection inside an stage. But it failed. Please verify the following config

 

stages:
   - stage: &continuous-integration-pipeline
        name: continuous-integration-pipeline
        steps:
           - step: *Install-Dependencies
            - parallel:
                   - step: *Unit-Test
                   - step: *E2E-Test
                   - step: *Build

Suggest an answer

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

Atlassian Community Events