Change the build result to help testing job configurations e.g. notifiers, publishers, promotions, upstream/downstream dependencies etc.

{hudson-plugin-info:pluginId=fail-the-build-plugin|jiraComponent=fail-the-build-plugin|sourceDir=fail-the-build-plugin}

Features
Compatibility
Install
Configure
Change log

Features

This plugin is provided to help test the behaviour of your Jenkins configuration.
Use this plugin to test notifiers, publishers, promotions, build pipelines ...

Compatibility

This plugin is compatible with any version of Jenkins (1.396+)

Install

This plugin can be installed 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.

Configure

Add the build step, by clicking "Add build step" and selecting "Set the build result"

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.

Advanced options

Click the Advanced button to enable the results to be set for specific build numbers.

Success, Unstable, Failed, Aborted

For each result type, a list of build numbers for which it should be set instead of the value in the Result drop down.

Change log

1.0 (18/07/2011)

Please post questions or comments about this plugin to the Jenkins User mailing list.
To report a bug or request an enhancement to this plugin please create a ticket in JIRA.