gpt4 book ai didi

Azure Devops 捕获触发管道的用户`

转载 作者:行者123 更新时间:2023-12-02 07:42:42 25 4
gpt4 key购买 nike

早上好,我有一个问题,他们是一种捕获谁触发了管道的方法,当有人在 GITHUB 的主分支中提交时,它会自动发生,在 devops GUI 中我看到下面的内容,我需要捕获它userid,因此如果出现任何问题,我会发送电子邮件

enter image description here

我尝试使用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 protected] 发送电子邮件,任何帮助表示感谢,谢谢

最佳答案

尝试Build.RequestedForEmail

参见predefined variables

关于Azure Devops 捕获触发管道的用户`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72054238/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com