Last Build Status Condition

Checks if the status of the last build matches a value. If no previous build exists any specified status will return false.

Version

Available from version 1.6

Examples

Basic example

1<lastStatusCondition value="Success" />

Example in context

 1<conditional>
 2  <conditions>
 3    <lastStatusCondition>
 4      <value>Failure</value>
 5    </lastStatusCondition>
 6  </conditions>
 7  <tasks>
 8    <!-- Tasks to perform if condition passed -->
 9  </tasks>
10  <elseTasks>
11    <!-- Tasks to perform if condition failed -->
12  </elseTasks>
13</conditional>

Configuration Elements

Element Description Type Required Default Version
description A description of the condition. String No none 1.6
value The status to match. String - one of:
* Success
* Failure
* Exception
* Unknown
* Cancelled
Yes n/a 1.6

Automatically Generated

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