So this my code following the guidelines in the docs:
trigger:
- none
resources:
repositories:
- repository: test-repo
type: git
name: test-project/test-repo
ref: testname
trigger:
branches:
include:
- testname
No matter what I do, pushing code to my test repo just does not trigger the pipeline. Already disables:
What Azure magic do I have to configure for it actually work? Please someone enlighten me.
According to the trigger document,
If a change to any other repository resource triggers the pipeline, then the latest version of YAML from the default branch of self repository is used.
You mentioned:
I have changed the settings of the pipeline to use my current branch as default.
If you mean that you changed the Default branch for manual and scheduled builds of the pipeline as shown in the screenshot, this is not the default branch of the repository but the default branch of the pipeline.
We need to ensure that the default branch of your repository contains the YAML file of this pipeline. You can either set the current branch as the default branch of your repository or merge the current branch into the default branch.
To set a new default branch, on the Branches page, select More options next to the new default branch you want, and choose Set as default branch.