azure-pipelines-agent: Tag exclusion in yaml trigger definition
Have you tried trouble shooting?
yes
Agent Version and Platform
2.134.2, CentOS 7
VSTS Type and Version
VisualStudio.com
What’s not working?
I have a yaml definition
trigger:
branches:
include:
- master
exclude:
- tags/*
- refs/tags/*
phases:
- phase: Test
queue:
name: ResSimTesting
demands:
- Agent.OS -equals Linux
steps:
- task: Bash@3
displayName: bash me some
inputs:
targetType: 'inline'
script: |
echo hello
which runs in CI mode by default (ie leaving trigger settings in vsts ui alone). It fails to ignore the tag and try to build it
however if I whitelist master in the UI this doesn’t happen
Am I missing something here?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 28 (15 by maintainers)
I have the opposite problem. When I use triggers for tagged commits, they don’t get triggered
There were bugs around tags. I checked in fixes which are rolling out with the current deployment. It will take a couple weeks to reach all accounts. The problem was annotated tags were causing failed builds to be created, whether the file excluded tags or not (error occurred while attempting to load the yaml file)