如何捕获谁在Azure DevOps中运行管道

时间:2020-05-05 11:33:34

标签: azure-devops azure-pipelines

如何捕获谁在Azure DevOps中运行构建管道作为变量?

有没有预定义的变量可以捕获?

2 个答案:

答案 0 :(得分:1)

来自docs

Build.QueuedBy-请参见“ How are the identity variables set?”。

注意:此值可以包含空格或其他无效的标签字符。在这种情况下,标签格式将失败。

Build.QueuedById-请参见“ How are the identity variables set?”。

答案 1 :(得分:0)