I am using the latest version of TeamCity and I'm trying to get a build to fail if the number of occurrences of the word "Warning:" exceed a certain level.
I am using the new build failure conditions on the build log with a regular expression. I have another quesiton on this on stackoverflow for the actual regex.
the actual regex is
(?:\\bWarning:.*?){1000,}
or a modified version to enable single line matching
(?s)(?:\\bWarning:.*?){1000,}
either of these expressions, simply pass all the time.