[英]Best way to check/know if build in Azure Devops is triggered by manually or CI
I have 2 repo, source
and target
for source there are 2 stages in the release pipeline .我有 2 个 repo, source
和target
for source 在发布管道中有 2 个阶段。 one is building the artifacts called Dev
and then another is trigger
=> trigger the build pipeline for the target
repo using api call.一个是构建名为Dev
的工件,然后另一个是trigger
=> 使用 api 调用触发target
库的构建管道。 Both repos are in the same project.两个仓库都在同一个项目中。
It can be possible that target repo
can be run manually run without continuous CI of source-repo
. target repo
可以手动运行,而无需source-repo
连续 CI。 Now my question is there any possibility to figure out how the build of target-repo
initiated is it manually
or CI
?现在我的问题是有没有可能弄清楚target-repo
的构建是manually
还是CI
启动的?
You have variable Build.Reason
which gives you你有变量Build.Reason
给你
The event that caused the build to run.导致构建运行的事件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.