Hi Team,
I am trying to reduce reusable code within my project pipeline; however, I am facing issues while passing a variable to the pipeline.
definitions:
steps:
- step: &reusable-deploy-step
name: "deploy"
script:
- echo "Deploying in $Environment"
pipelines:
custom:
deploy-all-sandboxes:
parallel:
- step:
<<: *reusable-deploy-step
name: "deploy to Dev sandbox"
variables:
Environment: "Dev"
-step:
<<: *reusable-deploy-step
name: "Deploy to QA sandbox"
variables:
Environment: "QA"
I am encountering an issue where the YAML validates in Bitbucket validator passes successfully. However, when running the pipeline, the environment variable value appears empty.
Can someone provide any suggestions to resolve this?