Thursday, May 12, 2016

Jenkins Consul K/V Builder Plugin Released

Do you use HashiCorp’s Consul software for Service Discovery or Key/Value configuration management?  One of the core features of Consul is the ability to store Key/Value data, and allow applications to retrieve said data for configuration-lookup or service discovery needs.  And, as a Jenkins user, I routinely need to lookup configurations and set environment variables for build execution.  The Consul K/V Builder Plugin allows me to do just that.  With this plugin I can read, write, and delete Key/Value data from and to the Consul servers or clusters, even if local Access Control List (ACL) security is enabled in the Consul software.

The plugin is written in Java with the Jenkins Open Source plugin framework (https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial) and libraries.  It is a Maven project, and the source is found here:  https://github.com/jenkinsci/consul-kv-builder-plugin

The plugin Wiki page is here:  https://wiki.jenkins-ci.org/display/JENKINS/Consul-KV-Builder+Plugin

6 comments:

  1. 2.0.4 version of this plugin is now released. https://wiki.jenkins-ci.org/display/JENKINS/Consul-KV-Builder+Plugin

    ReplyDelete
  2. Hi, Plugin looks great. Can it be used to iterate through a list of KVs in a tree and produce an EnvVar for each one?

    ReplyDelete
  3. Thanks Jimmy Ray. This is great. would it be possible to write the consul tags using this plugin?
    For e.g:
    info.build.version=@project.version@
    # Consul tags
    spring.cloud.consul.discovery.tags[0]=build=${info.build.version}
    spring.cloud.consul.discovery.tags[1]=proxy=none

    ReplyDelete
  4. Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.
    Digital Marketing Company in India

    ReplyDelete