Ever pushed code and expected the pipeline to run… but nothing happens? This is one of the most common issues teams face after setting up YAML-based Azure Pipelines.
Symptoms
- No pipeline run triggered after pushing code
- Manual runs work fine
- Pipeline shows:
No CI trigger found for this repo
Common Causes
- Missing
triggerblock in YAML - Wrong branch name under
trigger - YAML file is in a non-default location or branch
- Triggers disabled in pipeline UI
- Repo is disconnected or has permission issues
Define the Trigger Block Properly
trigger:
branches:
include:
- main
If you're using develop, adjust accordingly.
Check Pipeline Settings in Azure DevOps
Go to Pipelines → Click your pipeline → Edit Click the 3 dots → Triggers Ensure CI Trigger is enabled
YAML File Location Matters
If your YAML file is not in the root folder, define the path in pipeline config: Go to Pipeline → Edit Set path correctly: .azure-pipelines/pipeline.yml
Repository Permissions
Make sure the Build Service has at least Read access to the repo
Conclusion:
Triggers not working is mostly a YAML or permission issue. Always define trigger branches explicitly and keep your repo permissions tight but correct.