查看TeamCity服务消息 [英] Viewing TeamCity service messages

查看:108
本文介绍了查看TeamCity服务消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在对TeamCity 9.0.4中的构建步骤进行故障排除.问题似乎出在服务消息输出中.构建完成后是否可以查看这些内容?它们不包含在构建日志中.

I'm troubleshooting a build step in TeamCity 9.0.4. The problem seems to lie within the service message output. Is it possible to view these after the build has completed? They are not included in the build log.

关于服务消息的文档仅显示In order to be processed by TeamCity, they should be printed into a standard output stream of the build. https://confluence.jetbrains.com/display/TCD9/Build + Script + Interaction + with + TeamCity

The documentation on service messages simply says In order to be processed by TeamCity, they should be printed into a standard output stream of the build. https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity

(在某种程度上,可以通过手动重新运行构建步骤并监视标准输出来查看服务消息,但这并不总是可行的.)

(To some extent the service messages can be viewed by manually rerunning the build step and monitoring standard output, but this is not always feasible.)

推荐答案

如今有一个已解决的问题:

There was a problem which is solved nowdays:

TeamCity现在可以在其他服务消息中解析服务消息,但前提是原始消息已使用tc:parseServiceMessagesInside标记.示例:

TeamCity now parses service messages inside other service messages, but only if original message was tagged with tc:parseServiceMessagesInside. Example:

##teamcity[testStdOut name='test1' out='##teamcity|[buildStatisticValue key=|'my_stat_value|' value=|'125|'|]' tc:tags='tc:parseServiceMessagesInside']

JetBrains错误跟踪器的链接: https://youtrack.jetbrains.com/issue/TW-45311

A link to JetBrains bug tracker: https://youtrack.jetbrains.com/issue/TW-45311

这篇关于查看TeamCity服务消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆