添加一个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:Windowssystem32cmd.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.
执行结果如下: