简体   繁体   English

TeamCity构建日志用于单个构建步骤

[英]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.

相关问题 TeamCity 8 构建步骤中的 PowerShell 退出代码始终为 0 - PowerShell exit code is always 0 in TeamCity 8 build step TeamCity〜通过构建步骤在服务器上启动Docker - TeamCity ~ Start Docker on Server via Build Step TeamCity PowerShell脚本运行器构建步骤在两个项目中的运行方式不同 - TeamCity PowerShell script runner build step runs differently in two projects 用于在TeamCity中禁用构建步骤或在特定步骤中开始运行的脚本 - Script to disable build steps in TeamCity or start run at a specific step 在后续的构建步骤中从脚本访问TeamCity测试结果 - Accessing TeamCity test results from script in a subsequent build step 由TeamCity触发的构建步骤始终构建 - 即使没有更改 - Build step triggered by TeamCity always builds - even when there are no changes 有没有一种方法可以将TeamCity中构建步骤中的错误添加到电子邮件通知中? - Is there a way to add errors from build step in TeamCity to the email notification? 如何在 powershell 构建步骤中获取 TeamCity 工作目录 - How to get the TeamCity working dir in a powershell build step 开始过程:系统找不到在TeamCity Build步骤中指定的文件,但在本地运行良好 - Start-Process : The system cannot find the file specified from TeamCity Build step but works fine locally 如何在Teamcity构建步骤中在Windows服务器上运行后台运行Dotnet - How to run Dotnet run in background on windows server from Teamcity build step
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM