Conditional Publisher¶
A container publisher that only executes the child publishers when the condition (e.g. build status) is met.
Version¶
Available from version 1.5
Examples¶
1<conditionalPublisher>
2 <conditions>
3 <condition>Success</condition>
4 </conditions>
5 <publishers>
6 <!-- Add publishers here -->
7 </publishers>
8</conditionalPublisher>
Configuration Elements¶
Element | Description | Type | Required | Default | Version |
conditions | A list of conditions of which at least one must be met in order to run the publishers. | String array The following values are valid:* Success * Failure * Exception * Unknown * Cancelled |
Yes | n/a | 1.5 |
description | Description used for the visualisation of the buildstage, if left empty the process name will be shown. | String | No | The task/publisher name. | 1.5 |
dynamicValues | The dynamic values to use for the task. | Dynamic Values array | No | None | 1.5 |
environment | A set of environment variables set for commands that are executed. Each variable should be specified as
. |
Environment Variable array | No | ||
publishers | The publishers to run if the conditions are met. | Task And Publisher Blocks array | Yes | n/a | 1.5 |
Notes¶
Currently the only available condition that can be checked is the state of the build.
Automatically Generated¶
Documentation generated on Monday, 26 May 2014 at 7:18:00 AM