简体   繁体   English

检查/了解 Azure Devops 中的构建是否由手动或 CI 触发的最佳方法

[英]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, sourcetarget 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启动的?

AzDo 管道

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.

相关问题 有没有办法识别在 Azure Devops CI 构建中签入的 TFS 分支? - Is there a way to identify the TFS branch that was checked into in an Azure Devops CI build? Azure Devops YAML Pipelines 中的手动触发阶段 - Manually triggered stages in Azure Devops YAML Pipelines 构建失败的 Azure Devops 管道能否在使用 CI 触发时显示上次提交的用户? - Can Azure Devops pipelines, where the build failed, show the user of the last commit when triggered with CI? 当我只配置 CI 分支时,为什么在 PR 上触发了我的 Azure DevOps YAML 构建 - Why is my Azure DevOps YAML build triggered on PR when I only configured CI branches Azure DevOps CI 构建成功后崩溃 - Crash after Azure DevOps CI build succeeded CI构建正常运行,但未触发到Azure的部署 - CI build working but deployment to Azure is not triggered 有没有办法在 Azure DevOps CI/CD 构建管道中设置日期和时间(时区) - Is there a way to set a date and time (timezone) in Azure DevOps CI/CD build pipeline 无法从部署中心为 Dot Net core 3.1 配置 CI 构建。 有什么方法可以设置 CI Azure DevOps - Unable to configure CI build for Dot Net core 3.1 from deployment center. Is there any way to setup CI Azure DevOps Azure DevOps Pipelines,作业如何知道它是从计划中触发的? - Azure DevOps Pipelines, how can the job know it was triggered from a Schedule? Azure DevOps 为多个 YMLS 构建最佳实践 - Azure DevOps Build Best Practices for Multiple YMLS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM