【发布时间】:2020-04-06 17:06:40
【问题描述】:
启用调试/诊断时,您会在 Azure Pipeline 日志中看到所有这些条件调试语句。
##[debug] -NoLogo
##[debug] -NoProfile
##[debug] -NonInteractive
##[debug] -Command
但是如何从 PipeLine YAML 文件、脚本或程序中打印这些? 我看到了通过 powershell 在 Azure PipeLines Logging Commands Documentation 中记录警告和错误的示例。
echo "##vso[task.logissue type=error]Something went very wrong."
echo "##vso[task.logissue type=warning;sourcepath=consoleapp/main.cs;linenumber=1;columnnumber=1;code=100;]Found something that could be a problem."
但没有条件调试详细语句。
【问题讨论】:
标签: azure-devops