Steps of a branch pipeline are not executed if the same branch has another matching pipeline. Please check the code, you might get the idea. Do I need to use any condition? I have tried if
conditions as well, no luck. Please help on this.
definitions:
steps:
- step: &build-test
name: 'Build and test'
script:
- echo "Your build and test goes here..."
- step: &Lint
name: 'Lint'
script:
- echo "Your linting goes here..."
- step: &Securityscan
name: 'Security scan'
script:
- echo "Your security scan goes here..."
- step: &Deploy-step
name: 'Deploy-step'
deployment: staging
script:
- echo "your deployment"
pipelines:
branches:
'{dev,rev}': # this runs
- step: *build-test
- step: *Lint
dev: # not executing
- step: *Securityscan
rev: # not executing
- step: *Deploy-step
name: "Deploying to prod"