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
2.0.4 version of this plugin is now released. https://wiki.jenkins-ci.org/display/JENKINS/Consul-KV-Builder+Plugin
ReplyDeletegreat blog
ReplyDeleteHi, Plugin looks great. Can it be used to iterate through a list of KVs in a tree and produce an EnvVar for each one?
ReplyDeleteThanks Jimmy Ray. This is great. would it be possible to write the consul tags using this plugin?
ReplyDeleteFor 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
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.
ReplyDeleteDigital Marketing Company in India
Great! Thanks for this good and informative post.
ReplyDeleteBest Software Testing Training in Bangalore
Best Core Java Training in Bangalore
Best Dotnet Training in Bangalore
Best Oracle Training in Bangalore
That is a very good information. Thanks for the post.
ReplyDeleteAdvanced Excel Course in Bangalore
Hi...I am reading your post from the beginning, it was so interesting to read & thanks for sharing useful post. Warehouse Audit | CA Firms | Stock Audit
ReplyDeleteThat is extremely fascinating; you are an exceptionally talented blogger. I have shared your site in my informal organizations! An exceptionally pleasant guide. I will take after these tips. Much obliged to you for sharing such point by point article. Duplicate Payment Audit
ReplyDeleteContinuous Monitoring
Duplicate Invoice Audit