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
Host URL should contain protocol (HTTP/HTTPS)://<HOST_NAME>.
key
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
(optional)
Token is used to supply UUID token for Consul ACL token calls. Token can be supplied by build parameters.
apiUri
(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
(optional)
ENV Varaible Key is used to store the retrieved value in the build ENV variables to be used downstream.
ignoreGlobalSettings
(optional)
keyValue
(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
(optional)
Connection timeout in milliseconds, default is 10000.
timeoutResponse
(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
Token is used to supply UUID token for Consul ACL token calls. Token can be supplied by build parameters.
hostUrl
Host URL should contain protocol (HTTP/HTTPS)://<HOST_NAME>.
key
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
ENV Varaible Key is used to store the retrieved value in the build ENV variables to be used downstream.
apiUri
(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
(optional)
timeoutConnect
(optional)
Connection timeout in milliseconds, default is 10000.
timeoutResponse
(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.