![](/img/trans.png)
[英]Triggered pipeline uses different commit as triggering pipeline in Azure DevOps
[英]Azure Devops capture the user who triggered the pipeline `
早上好,我有一個問題,他們是一種捕獲誰觸發了管道的方法,當有人在 GITHUB 的主分支中提交時,它會自動發生,在 devops GUI 中,我看到下面的內容,我需要捕獲該用戶 ID,所以在如有任何問題,我會發送 email
我嘗試使用 Build.QueuedBy、Build.QueuedById、Build.RequestedFor 但我得到了一些值,例如
this is Microsoft.VisualStudio.Services.TFS variable for the username
this is 00000002-0000-8888-8000-000000000000 ID of the user
但我需要捕獲 AMADURO,以便我可以輕松地將 email 發送到 AMADURO@gmail.com,感謝任何幫助,謝謝
試試Build.RequestedForEmail
查看預定義變量
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.