hashicorp-vault-plugin
hashicorp-vault-plugin copied to clipboard
Jenkins environment variables substitution
What feature do you want to see added?
Some times is essential to switch Vault URL. But currently there is no good manageable way to do it. Using environment variables in Vault configuration seems obvious, although it does not work. Vault plugin does not provide variable substitution on any configuration level.
I have undertaken a small investigation and I've tried various versions of vault plugin and various configurations. None of these combinations support variable expansion.
Here is a sample.
There is DEFAULT_VAULT_URL
environment variable set in Jenkins settings.
And there is a job configured to use that variable
The job should simply print the value obtained from Vault:
The job configured this way fails with an error:
The last picture shows that the
DEFAULT_VAULT_URL
variable was not expanded.
Upstream changes
No response