I installed docker in my windows 10 and run jenkins with alpine openjdk 11, and it seems to work ok, because it can download the code from github but the problem is when it needs to get the secret from Vault server hosted in my local PC. Actually I received this message:
com.datapipe.jenkins.vault.exception.VaultPluginException: Vault response returned 0 for secret path ***
I am using a jenkins credential to my vault with this ip:
127.0.0.1:8200/ui/vault/secrets/ or hostname:8200/ui/vault/secrets/
But it not works.
Also, from my jenkins i am using a jenkinsfile pointing to my Vault server like this:
def secrets = [
[path: 'test/testproject', engineVersion: 2, secretValues: [
[envVar: 'user', vaultKey: 'user'],
[envVar: 'pass', vaultKey: 'pass']
]
]
]
]
def configuration = [vaultUrl: 'http://localhost:8200', vaultCredentialId: 'VaultCredential', engineVersion: 2]
But, the problem continues