This plugin is compatible with any version of Jenkins (1.396+)
Install from the Plugin Manager (Manage Jenkins > Manage Plugins) under "Build Tools".
To install manually, download the latest plugin from http://mirrors.jenkins-ci.org/plugins/fail-the-build-plugin/ and use the Upload Plugin option in the Advanced tab of the Plugin Manager.
Add the build step, by clicking "Add build step" and selecting "Set the build result"
Select the status that you want. Options are Success, Unstable, Failed, Aborted, and Cycle.
Selecting Cycle will cause the result to cycle based on the build number. Image of Build history with Cycle selected below.
Click the Advanced button to enable the results to be set for specific build numbers.
For each result, a list of build numbers for which it should be set instead of the value in the Result drop down.
Skip to end of metadata Go to start of metadata