Forums

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

The 'master' section in your bitbucket-pipelines.yml file is missing a 'step'

Roman Borysenko February 15, 2019

After adding anchors to my bitbucket-pipelines.yml file I got:

CONFIGURATION ERROR
The 'master' section in your bitbucket-pipelines.yml file is missing a 'step'. Please add the missing 'step' to fix the error.

 

But, according to https://bitbucket-pipelines.prod.public.atl-paas.net/validator, the config is VALID

image: node:latest
definitions:
caches:
node: ./node_modules
steps:
- step: &Test-step
name: Run tests
script:
- npm install
- npm run test
- step: &Deploy-step
caches:
- node
script:
- sh bin/pipeline/backend-url-replace.sh
- npm run build
- sh bin/pipeline/deployment.sh
- step: &E2E-step
name: E2E tests
caches:
- node
image: cypress/base:10
script:
- set +e; npm run cy:test
- sh bin/pipeline/cypress-media-cp.sh
pipelines:
branches:
master:
- step: *Test-step
- step:
<<: *Deploy-step
name: Deploy to Test
deployment: test
- step:
<<: *Deploy-step
name: Deploy to Staging
trigger: manual
deployment: staging
release/*:
- step: *Test-step
- step:
<<: *Deploy-step
name: Deploy to Staging
deployment: staging

 What am I doing wrong?

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 5, 2019

Hi Roman,

Looks like this is a whitespace formatting issue.

You need to change the step indentation to this:

pipelines:
branches:
master:
- step: *Test-step
- step:
<<: *Deploy-step
name: Deploy to Test
deployment: test
- step:
<<: *Deploy-step
name: Deploy to Staging
trigger: manual
deployment: staging
release/*:
- step: *Test-step
- step:
<<: *Deploy-step
name: Deploy to Staging
deployment: staging

Does that help?

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events