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 sample job does not build (JOB_VAULT_TOKEN) #4

Open
alexkonkin opened this issue Oct 11, 2019 · 0 comments
Open

Jenkins sample job does not build (JOB_VAULT_TOKEN) #4

alexkonkin opened this issue Oct 11, 2019 · 0 comments

Comments

@alexkonkin
Copy link

First of all thank you for the very clear and interesting article.
Your step by step example contains a typo which makes Jenkins job to fail.

Quoting a definition of the variable:
string(credentialsId: 'JENKINS_VAULT_TOKEN', variable: 'VAULT_TOKEN')

Quoting a snippet that contains a typo (JOB_):
export JOB_VAULT_TOKEN=$(./vault write -field=token auth/approle/login role_id=${ROLE_ID} secret_id=${SECRET_ID})

to make this job run
JOB_VAULT_TOKEN
should be replaced with
VAULT_TOKEN

Again, thank you for your article.
-Alex

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

No branches or pull requests

1 participant