jenkinsci/job-dsl-plugin — pull request #277 by awreece (2014-09-02 04:17:21+00:00)
Title: build status

As suggested by @daspilker for https://github.com/jenkinsci/job-dsl-plugin/pull/251, I split this into a separate pull request.

## Build Status Condition

The build status condition was previously built using a SimpleCondition. Unfortunately, this generated the wrong XML for the Run Condition Plugin version 1.0: it was generating blobs of the form:

```

SUCCESS
FAILURE

```

Whereas using the gui to configure a job generated XML of the form:

```

FAILURE
2
RED
true

SUCCESS
0
BLUE
true

```

Through further experimentation, we found that the `ordinal` tag was necessary and sufficient for jenkins to correctly process the job. Unfortunately, this meant we couldn't use a `SimpleCondition` for build status anymore, as the testing infrastructure wasn't able to handle `SimpleCondition` nodes with children.