This plugin lets you search for some text using regular expressions in a set of files or the console log. Once a match is found, you can downgrade the build result to UNSTABLE, FAILURE, NOT_BUILT, or ABORTED. See the Jenkins Result class for details.

For example, you can search for the string failure in a set of log files. If a match is found, you can downgrade the build result from SUCCESS to FAILURE. This is handy when you have some tools in your build chain that do not properly set the exit code.