简体   繁体   中英

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 . one is building the artifacts called Dev and then another is trigger => trigger the build pipeline for the target repo using api call. 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 . Now my question is there any possibility to figure out how the build of target-repo initiated is it manually or CI ?

AzDo 管道

You have variable Build.Reason which gives you

The event that caused the build to run.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM