Search by Build
Entity Properties
The build to issue index is available as indexed issue entity properties that can be used in JQL when searching for issues, the following index attributes are available:
Attribute | JQL | Description |
---|---|---|
Worse job result | jenkinsWorstresult | String field containing the worst job result. From worst to best, UNKNOWN , ABORTED , NOT_BUILT , FAILURE , UNSTABLE , SUCCESS |
Total number of jobs linked | jenkinsTotal | Number field containing the total number of unique jobs. |
Total number of success jobs | jenkinsSuccess | Number field containing the total number of unique jobs where the last build was successful. |
Total number of unstable jobs | jenkinsUnstable | Number field containing the total number of unique jobs where the last build was unstable. |
Total number of failure jobs | jenkinsFailure | Number field containing the total number of unique jobs where the last build has failed. |
Total number of aborted jobs | jenkinsAborted | Number field containing the total number of unique jobs where the last build was aborted. |
Total number of not built jobs | jenkinsNotbuilt | Number field containing the total number of unique jobs where the last build was not built. |
Total number of unknown jobs | jenkinsUnknown | Number field containing the total number of unique jobs where the last build has an unknown result state. |
Find issues in project DEV that have a failing build
project = DEV AND jenkinsWorstresult = FAILURE ORDER BY priority DESC
Find issues in the project DEV that have non-successful builds
project = DEV AND jenkinsTotal > jenkinsSuccess ORDER BY priority DESC