Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenkins environment variables substitution #279

Open
morriell opened this issue Jan 17, 2023 · 0 comments
Open

Jenkins environment variables substitution #279

morriell opened this issue Jan 17, 2023 · 0 comments

Comments

@morriell
Copy link

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.
image
And there is a job configured to use that variable
image
The job should simply print the value obtained from Vault:
image
The job configured this way fails with an error:
image
The last picture shows that the DEFAULT_VAULT_URL variable was not expanded.

Upstream changes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant