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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.