I want to achieve this goal,
When i push to dev branch i want all steps to execute with Test environment variables using Pipeline Deployments
image: node:11.13.0-alpine
definitions:
steps:
- step: &build
name: Build
script:
- echo $AWS_STAGE
- step: &deploy
name: Deploy
script:
- echo $AWS_STAGE
pipelines:
branches:
release/dev:
- step:
<<: *build
deployment: test
- step:
<<: *deploy
deployment: test
I have Deployments setup correctly and its printing correct variables if i have deployments in only one step
Above YAML is valid by https://bitbucket-pipelines.prod.public.atl-paas.net/validator
But throws an error when pipeline is runing
