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.

Consul KV Builder

step([$class: 'ConsulKVBuilder']): Consul K/V Builder

  • hostUrl : String
    Host URL should contain protocol (HTTP/HTTPS)://<HOST_NAME>.
  • key : String
    Key is used in GET/PUT requests to lookup the value from, or right the key/value pair to the Consul key/value store.
  • aclToken : String (optional)
    Token is used to supply UUID token for Consul ACL token calls. Token can be supplied by build parameters.
  • apiUri : String (optional)
    URL Override is used to override the K,V API URL.
  • debugMode (optional)
    Enable Debug messages for more verbose logging.
    • Values: ENABLED, DISABLED
  • envVarKey : String (optional)
    ENV Varaible Key is used to store the retrieved value in the build ENV variables to be used downstream.
  • ignoreGlobalSettings : boolean (optional)
  • keyValue : String (optional)
    Value is used in PUT calls to insert/update a key/value pair.
  • requestMode (optional)
    Request Mode set to READ will execute a GET to lookup the value, WRITE will execute a PUT to insert/update the value.
    • Values: READ, WRITE, DELETE
  • timeoutConnection : int (optional)
    Connection timeout in milliseconds, default is 10000.
  • timeoutResponse : int (optional)
    Response timeout in milliseconds, default is 30000.

wrap([$class: 'ConsulKVReadWrapper']): Add Consul K/V Read Config(s)

  • reads
      Array / List of Nested Object
    • aclToken : String
      Token is used to supply UUID token for Consul ACL token calls. Token can be supplied by build parameters.
    • hostUrl : String
      Host URL should contain protocol (HTTP/HTTPS)://<HOST_NAME>.
    • key : String
      Key is used in GET/PUT requests to lookup the value from, or right the key/value pair to the Consul key/value store.
    • envKey : String
      ENV Varaible Key is used to store the retrieved value in the build ENV variables to be used downstream.
    • apiUri : String (optional)
      URL Override is used to override the K,V API URL.
    • debugMode (optional)
      Enable Debug messages for more verbose logging.
      • Values: ENABLED, DISABLED
    • ignoreGlobalSettings : boolean (optional)
    • timeoutConnect : int (optional)
      Connection timeout in milliseconds, default is 10000.
    • timeoutResponse : int (optional)
      Response timeout in milliseconds, default is 30000.

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.