We are using azure dev ops for CICD and validating PR\'s.
Yesterday I decided to start making yaml files for validation builds.
I created the pipeline. I set the
Set;
# A pipeline with no trigger
trigger: none
On your validation build pipeline. This will stop the build being run regardless of which branch / paths have been pushed.
The validation build pipeline will still respect the branch policies you've setup for PRs.
You can then have something like;
paths:
include:
- 'src/ProjectA/*'
branches:
include:
- development
For your CI build pipelines which will trigger when there's a successful PR that affects ProjectA
.