TeamCity buildlog for a single build step

有些话、适合烂在心里 提交于 2020-01-14 12:18:12

问题


When teamcity executes an MSBuild step, the build log has a collapsible/expandable hierarchy. 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. 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?


回答1:


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>']"


来源:https://stackoverflow.com/questions/28587938/teamcity-buildlog-for-a-single-build-step

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!