更新时间:2023-02-10 22:57:44
这是因为在构建完成后(通过标签来源或手动)添加了标签Automated
.这无法触发CD发行. 应该在构建期间添加标签(尚未完成构建).因此,您可以在构建定义中添加带有嵌入式脚本的 power shell 任务:
This is because you added the tag Automated
after the build is finished (by label source or manually). This can’t trigger CD release. Tags should be add during a build (not a build is finished). So you can add a power shell task with inline script in your build definition:
Write-Host "##vso[build.addbuildtag]Automatd"
然后将在构建完成后触发发行版.
Then the release will be trigger after build is finished.