Disable red text in build log

I have Ant steps in the build log where part of them generate stderr output in cases that are not errors or warnings. For example, <retry><get> until http server comes online.

Teamcity expands all such nodes and colours them red, upon opening the build log, which means every time you look at a log to diagnose a real problem, you have to mentally do extra work, filtering out such "noise" and collapsing items.

I want to be able to tell Teamcity not to do that, ideally using a service message around the parts in question. Possible? I found limited mention of stderr in the service message docs, but it's not at all clear what it means.

0
3 comments

Hi Steve,

You could set up Ant to redirect stderr to some file so that it's not shown. It seems like you could set up the "error" parameter to accomplish that: https://ant.apache.org/manual/Tasks/java.html

It doesn't feel like ignoring stderr is a common scenario or that isn't better handled in a different manner, such as that mentioned above. If you would still like to see it implemented, please consider opening a request in our tracker: https://youtrack.jetbrains.com/issues/TW

0

Hi Denis,

Thanks for responding. It's a general problem (not Ant specific) where you have a larger build which might have genuine errors, but some parts of it aren't errors but emit expected messages on stderr. In my case, Ant, with nested retry task waiting for a server to come online. Disabling all error output for the larger build is a non-starter.

I'll file an issue.

Steve

0

Please sign in to leave a comment.