Null Task

The Null Task is a task that doesn't do anything - it simply returns successfully. This is useful for projects that simply monitor the source control system for changes but don't need to do anything.


Available from version 1.0


Minimalist example

1<nullTask />

Full example

1<nullTask simulateFailure="true" />

Configuration Elements

Element Description Type Required Default Version
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
1<variable name="name" value="value" />

Environment Variable array No
simulateFailure Defines whether to fail the task or not.
This can be useful in testing scenarios - but is probably most useful for people developing for CruiseControl.NET.
Boolean No false 1.3
simulateFailureMessage The message for the exception. Makes it easier to spot differences between different errors. String No 1.5

Automatically Generated

Documentation generated on Monday, 26 May 2014 at 7:18:04 AM