The Build sensor data type is designed to represent the occurrence of an invocation of a build tool (such as Ant or Make) and the results of this invocation.
![]() | Note |
|---|---|
The only build tool for which we have implemented a sensor is Ant. | |
Table 25.3, “Build SDT attributes” documents its attributes.
Table 25.3. Build SDT attributes
| Attribute | Description |
|---|---|
| tstamp | The UTC time at which this data was collected. |
| tool | A string indicating the tool that collected this data, such as "Ant". |
| result | The result of the build (either "Success" or "Failure"). |
| path | A fully qualified directory path indicating the location of the system that invoked this build. |
| target | The 'top-level' target associated with this build data. |
| pMap | Optional information about this build event. |
Ant is a widely used tool for building Java-based systems. The Hackystat sensor for Ant records information about each invocation of Ant, whether it passed or failed, and why. This information can be useful for tracking when builds are being done, what the results are, and whether this the occurrences and success rate is changing over time.
The pMap field in the build SDT sent by ANT sensor contains the following information: failureType (present only if build fails), failureMessage (present only if build fails), runTime, startTimeMillis, endTimeMillis, configuration, startType, checkstyleRan, compilationRan, unittestRan, failureModuleName.