The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

Elasticsearch Query

step([$class: 'ElasticsearchQueryBuilder']): Elasticsearch Query

  • query : String
    Elastic Search query to run
  • aboveOrBelow : String
    Whether the threshold value is too high or too low. If set to gte counts greater than or equal to threshold will fail the build. If set to lte counts less than or equal to threshold with fail the build.
  • threshold : long
    The count of query results in a given time to trigger build failure
  • since : long
    How long ago to look back for results relative to the time the build executes must be greater than 0.
  • units : String
    Time units for the since value

Was this page helpful?

Please submit your feedback about this page through this quick form.

Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?


See existing feedback here.