Ignoring text that causes a build failure
Our build log reports errors and warnings from a third party library which cause the build to fail. Is there anyway to stop TeamCity thinking that these are build failures? I've looked at the build failure conditions, but can't workout how to just ignore these messages and not fail for other legitimate errors.

Please sign in to leave a comment.
Is it possible to suppress the third-party command error output by appending `2>$null` to the command execution line?
Hi Fedor
The third party library is called from inside our application. Appending '2>$null' will suppress all errors from our application. Could I use grep to remove lines with matching text?
grep -v "IDA ERROR"
Is it possible, perhaps, to have the application process the output of this library? Essentially, it could filter out any stderr from the library but let out stdout, or selectively allowing stderr entries if they do not match a specific pattern.
I am asking because try/catch block will interrupt the command execution, and I do not think there is a way to selectively pipe error messages to null. Above might be the easiest approach, but please let me know if that works for you.