Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket pipeline using multiple anchors

Jani Ruohomaa July 4, 2019

Hi,

I have the defined multiple anchors and using them like below:

Example found here: https://confluence.atlassian.com/bitbucket/yaml-anchors-960154027.html

but I am getting: 

There is an error in your bitbucket-pipelines.yml at [pipelines > branches > feature/* > 2 > step]. To be precise: This section should be a map (it is currently defined as a list).

What am I doing wrong ? So the idea is to run the steps in dev-env and common-env before the actual script ./sfdx.sh deploy

branches:
f
eature/*:     
-
step: *dev-env
- step: *common-env
- step:
- trigger: automatic
- script:
- ./sfdx.sh deploy

 

1 answer

1 accepted

0 votes
Answer accepted
Jeroen De Raedt
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 9, 2019

Hi @Jani Ruohomaa

as the error indicates, the attributes of your step should not be list items. So try something like this: 

branches:
f
eature/*:     
-
step: *dev-env
- step: *common-env
- step:
trigger: automatic
script:
- ./sfdx.sh deploy
Jani Ruohomaa August 15, 2019

Thanks, it seems to work now

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events