I am adding a build tag using the below yaml powershell script. The final result will have a condition, but for testing purposes the condition was omitted. I am then trying to filter the release using the bottom picture. I have tried using "skip-release" with an exclude, and "-skip-release" with an include. Neither work. The release is always triggered.
- task: PowerShell@2
inputs:
targetType: inline
script: |
Write-Host "##vso[build.addbuildtag]skip-release"
QUESTION: Do build tags actually work in the release filters? Or am I doing something wrong? I have searched for days, and asked both chatgpt and claude. No answers found yet.
TL;DR Excluding tags is not supported.
I suggest you try the opposite approach, i.e. add a tag to the builds you want to deploy and then configure the branch filters with an Include
condition.
Example:
Notes: