Bitbucket has one stage feature that allows to have multiple steps inside a single stage and i was trying to find out the correct approach to do this with the Allowed parent properties as default, branches, pull-requests, tags, and custom. When i was trying in VS code and it gives me Code Property stage is not allowed. Can someone give me the correct way of doing this part. Below is the method that i was trying and attached the screenshots for the same
image: hashicorp/terraform:latest
pipelines:
branches:
'{feature-dev-*,feature-qa-*,feature-master-*}':
- stage:
name: Build and test
steps:
- step:
name: Deploy
script:
- |
branch=$(echo $BITBUCKET_BRANCH | awk -F'-' '{print tolower($2)}')
