We have two environments INT and PROD. We have a schedule trigger for INT and continuous deployment trigger for PROD. Whenever INT build is verified we add a tag to the build int_verified. The continuous deployment trigger on PROD is set to trigger for builds with tag int_verified. I was hoping that whenever a new tag is added to the build the triggers are triggered and the PROD deployment would start. However, it doesn't seem to be the case. Is there a different way to get this working?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Just add the build tag to the completed build doesn’t trigger release. You need to add build tag during the build.
For example:
- Add PowerShell task
Add tag by using this code:
Write-Host "##vso[build.addbuildtag]int_verified"
More information about logging, you can refer to: Logging Commands