Reputation: 153
I have four folders in my Azure DevOps repo. I'm looking if I commit any change in folder A only that folder should trigger. Is there any way to achieve this with single build definition.
Upvotes: 0
Views: 1167
Reputation: 3058
You can add a path filter in your trigger. For example:
trigger:
branches:
include:
- main
paths:
include:
- A/*
This pipeline will be triggered only if you commit changes in folder A. Here is the document about Path filters in CI trigger and you can find more detailed information there.
Upvotes: 4