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
    Elastic Search query to run
    • Type: String
  • aboveOrBelow
    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.
    • Type: String
  • threshold
    The count of query results in a given time to trigger build failure
    • Type: long
  • since
    How long ago to look back for results relative to the time the build executes must be greater than 0.
    • Type: long
  • units
    Time units for the since value
    • Type: String

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.