Credential provider for Hashicorp Vault plugin missing in withCredentials(....)

26 views
Skip to first unread message

Torsten Reinhard

unread,
May 9, 2019, 12:18:32 PM5/9/19
to Jenkins Users
Hi,

I recently installed the Hashicorp Vault (pipeline) plugin at my Jenkins 2.150.2 instance.
In general the plugin is working - but I´m missing the option to use

...
withCredentials
([[$class: 'VaultTokenCredentialBinding', credentialsId: 'vault-token', vaultAddr: 'https://myvault.domain:8200']]) {
           
// values will be masked
            sh
'echo TOKEN=$VAULT_TOKEN'
            sh
'echo ADDR=$VAULT_ADDR'
}
...



I´m getting


java
.lang.UnsupportedOperationException: no known implementation of class org.jenkinsci.plugins.credentialsbinding.MultiBinding is named VaultTokenCredentialBinding



When trying to generate the code snippet with the "Pipeline syntax" Help, I´m missing the Vault credential providers (for a vault token for example) at all.
It´s also missing when I try to use it in a freestyle job.

What am I missing ?

At https://myhost.mycompany.net/jenkinsci/configureCredentials/ I´ve enabled all providers.

Thanx for any hint.

Torsten
Reply all
Reply to author
Forward
0 new messages