TFS2018 获取所有Build变量及变量值

添加一个Command Line 步骤,Tool设置为 cmd ,并设置参数为 /k set 

注意:若在执行时出现如下报错信息,Tool的值改成 cmd.exe 

2018-07-20T02:31:36.0416435Z ##[debug]Fail on standard error: 'False'
2018-07-20T02:31:36.0416435Z ##[debug]Modify environment: 'False'
2018-07-20T02:31:36.0416435Z ##[debug]C:\Windows\system32\cmd.exe /c "cmd /k set"
2018-07-20T02:31:36.0416435Z ##[command]cmd /k set
2018-07-20T02:31:36.1509975Z 'set"' is not recognized as an internal or external command,
2018-07-20T02:31:36.1509975Z operable program or batch file.

执行结果如下:

猜你喜欢

转载自www.cnblogs.com/elliot-lei/p/9340981.html
今日推荐