When we shifted our CI Build from classic to YAML, we wanted the CI only to run when the target is our master
branch. So right now, if you create a PR and push changes, it will run the CI as expected.
This is the trigger in our CI YAML:
trigger:
batch: true
branches:
include:
- master
Now, I thought I could just add ‘releases/*’ to the triggers and it would automatically start ab build, but this does not work:
trigger:
batch: true
branches:
include:
- master
- releases/*
I also tried putting it in parenthesis "releases/*"
and including the full path like refs/head/releases/*
, but nothing works.
I’ve read here that trigger
should be correct to trigger the pipeline and pr
should only trigger on pull requests. I don’t see the problem. Any hints?
Franz Plam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.