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

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

0 votes
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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..

Suggest an answer

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

Atlassian Community Events