jenkins plugin to fail build based on console output

build, jenkins, plugins

Solution

You should try the Post Build Task plugin. You can search for a pattern and then launch a script.

edit: There is also Text finder plugin, looks better for your problem

Problem

Is there a plugin to fail a build if a pattern occurs on the console output? For example: ``` Build Action - success Build Action - success Build Action - error_pattern Build Action - success ``` Let's assume that the Jenkins build process does not fail the build on error_pattern, I need to have an external fail trigger of some sort. EDIT Looking for a solution to fail the build during, not a post build task.

Original source