Jenkin to automate key/value store

I wanted to automate updating keys in kv store across different environment types which are spread across different data-centers using jenkins. Are there any good resource/guidance that I can follow so that I can automate consul kv store using jenkins job which can be run as and when needed manually. User will be prompted to give environment types and process should automatically update certain keys across data centers for that environment type with some value. Appreciate any inputs. Thanks