I have the following code in my YAML file
trigger:
branches:
include:
- main
paths:
include:
- WVD/*
When I complete a pull request and the code gets committed back to main it should run if its in the WVD directory. (WVD dir is in the root of the repo)
If I edit the pipeline > Triggers and override the YAML and select the main branch and path filter WVD/* it works? Editing Trigger on Pipeline
Any ideas what could be causing it?
Looks like in the Pipeline trigger screen, you can either override or use YAML but there is a tick box to allow Continuous Intergration.
Make sure you have this enabled and then remove the override tickbox from the trigger settings or CI\CD will be disabled even tho you are specifying to use YAML. :) Azure Pipeline Trigger screenshot