This page last changed on Nov 30, 2010 by ccnet-doc-gen.

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

<conditionalPublisher>
  <conditions>
    <condition>Success</condition>
  </conditions>
  <publishers>
    <!-- Add publishers here -->
  </publishers>
</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
<variable name="name" value="value" />

.
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 Tuesday, 30 Nov 2010 at 10:25:41 AM
Using assembly version 1.6.7805.1

Document generated by Confluence on Jan 23, 2011 08:52