关于TeamCity buildlog for a single build step和Can I format powershell output into collapsible Tree View in TeamCity logs?所涵盖的类似主题,我们有一个由PSake
驱动的大型构建管道,它有很多设置任务。每个任务都使用
write-host "##teamcity[progressStart '<message>']"
write-host "##teamcity[progressFinish '<message>']"
但是当此任务仍由TeamCity
构建步骤包装时,它会将所有日志放入带有标签Step 1/1: Run build (Command Line) (time elaped)
的可折叠段落中,因此它会在构建日志中的每个后续行前加[Step 1/1]
作为前缀对格式化产生不良后果。
有没有办法禁止TeamCity
这种行为?