The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

There is an error in your bitbucket-pipelines.yml at [pipelines > branches > master > 0 > step].

Prakash
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 14, 2023

i am getting below error

There is an error in your bitbucket-pipelines.yml at [pipelines > branches > master > 0 > step]. This section should be a map (it is currently defined as a list). Find out more

This is my pipeline yml

 

 

image: 'atlassian/default-image:latest'
definitions:
steps: &ref_0
- step:
name: SonarQube analysis
image: 'sonarsource/sonar-scanner-cli:latest'
caches:
- sonar
script:
- sonar-scanner
caches:
sonar: /opt/sonar-scanner/.sonar
clone: depth: full
pipelines:
branches:
master:
- step: *ref_0
pull-requests:
'**':
- step: *ref_0

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Saxea _Flowie_
Atlassian Partner
September 14, 2023

Try placing the ref on the step and not steps.

image.png

Prakash
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 15, 2023

Thank you @Saxea _Flowie_ it works..

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events