Home > Mobile >  Retrieving secrets from HashiCorp Vault in jenkins pipeline using HashiCorp Vault Plugin
Retrieving secrets from HashiCorp Vault in jenkins pipeline using HashiCorp Vault Plugin

Time:08-16

I have setup a connection between my Jenkins and Vault and by using "withVault" method enter image description here

CodePudding user response:

The $github_token variable doesn't contain asterisks, Jenkins displays any Vault secret using asterisks on console, to protect the real value.

if you want to check the $github_token value, write it to a file in the workspace, doing something like this:

echo $github_token > token.txt

Some other problem is preventing you to access the GitHub server (Is the token correct? Is the path correct? Has the Jenkins node access to the GitHub?). Log to the Jenkins node and try to execute the same command manually.

  • Related