Reputation: 21
Encountering an issue with azure pipelines:
Unable to resolve the reference 'refs/heads/main' to a specific version. Verify the reference exists in the source repository.
Error List Image Error Image Recently we have changed the default branch from main to master. The repo doesn't even have a main branch. The pipeline also doesn't trigger main.
The pipeline:
resources:
pipelines:
- pipeline: uipipeline
source: somesourceA
trigger:
branches:
include:
- develop
- pipeline: backendpipeline
source: somesourceB
trigger:
branches:
include:
- master
Branches in repo:
Things tried:
Checked YAML trigger settings. Its set to "master"
Upvotes: 0
Views: 274
Reputation: 16058
Check your branch settings here:
Upvotes: 0