twerpiebird
twerpiebird

Reputation: 21

Azure Pipeline Trigger still referencing main after changing default to master

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:

Branch List

Things tried:

Checked YAML trigger settings. Its set to "master"

Upvotes: 0

Views: 274

Answers (1)

Shamrai Aleksander
Shamrai Aleksander

Reputation: 16058

Check your branch settings here:

  1. Triggers:

enter image description here

  1. Get Sources:

enter image description here

Upvotes: 0

Related Questions