[英]TeamCity buildlog for a single build step
When teamcity executes an MSBuild step, the build log has a collapsible/expandable hierarchy. 当teamcity执行MSBuild步骤时,构建日志具有可折叠/可扩展的层次结构。 I have one big build step that runs a powershell script and the resulting build log is large and takes a lot of time to load.
我有一个运行PowerShell脚本的大型构建步骤,结果构建日志很大,需要花费大量时间来加载。 Is there a way to make teamcity split a single build step into it's many smaller steps instead of just one giant text file?
有没有办法让teamcity将一个构建步骤分成许多较小的步骤,而不只是一个巨大的文本文件?
There is no way to split the build step into multiple steps in the log, but you can create nested collapsible blocks, as described in this answer . 无法将构建步骤拆分为日志中的多个步骤,但您可以创建嵌套的可折叠块,如本答案中所述 。 In your script do something like:
在您的脚本中执行以下操作:
write-host "##teamcity[blockOpened name='<blockName>']"
#do work
write-host "##teamcity[blockClosed name='<blockName>']"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.