Hello team,
I'm trying to work with anchors and inheritance in Bitbucket yaml file but I got this error
There is an error in your bitbucket-pipelines.yml at [pipelines > branches > release > 1]. Step is empty, null, or missing.
definitions:
services:
docker:
memory: 1024
caches:
sonar: ~/.sonar
maven: ~/.m2/repository
steps:
- step: &build-release-common
name: Build and Test with Default Branches
caches:
- maven
size: 2x
script:
- echo "Building and testing the project with release branches..."
branches:
"release":
- step:
<<: *build-release-common
deployment: Staging
name: "build and test"
script:
- echo "Deploying to Staging"