admin管理员组文章数量:1333451
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.
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.
Share Improve this question asked Nov 20, 2024 at 15:11 SpaceGhost440SpaceGhost440 5794 silver badges20 bronze badges 2 |1 Answer
Reset to default 1TL;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:
- All the filters specified here will be OR'ed, i.e., artifact matching at least one filter condition would be sufficient to trigger a release.
- If you include multiple tags in the same line, they are AND-ed while evaluating the trigger condition, whereas if you include tags in separate lines, they are OR-ed.
本文标签:
版权声明:本文标题:Filtering azure devops release build based upon build tag with "Continuous deployment trigger" - Stack Overflo 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742351251a2458538.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
Exclude
filters. Why are you trying to use a tag with a minus prefix such as-skip-release
? That's not the correct tag value. – Rui Jarimba Commented Nov 20, 2024 at 15:40