jenkins-job-builder/tests/wrappers/fixtures/vault-full.xml
Sagar Khushalani 7b805f9c0c Add missing vault-secrets options
This patch adds the following options that are missing from JJB
but available in the UI:

- fail if path not found
- skip ssl verification
- k/v engine version

Change-Id: Id8e14d63c668a1ef826ae88ae3ce0360609bde99
2020-10-13 07:51:16 -05:00

47 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<buildWrappers>
<com.datapipe.jenkins.vault.VaultBuildWrapper plugin="hashicorp-vault-plugin">
<configuration>
<vaultUrl>http://127.0.0.1:8200</vaultUrl>
<vaultCredentialId>myCredentials</vaultCredentialId>
<engineVersion>2</engineVersion>
<failIfNotFound>false</failIfNotFound>
<skipSslVerification>true</skipSslVerification>
</configuration>
<vaultSecrets>
<com.datapipe.jenkins.vault.model.VaultSecret>
<path>secret/my-secret</path>
<engineVersion>1</engineVersion>
<secretValues>
<com.datapipe.jenkins.vault.model.VaultSecretValue>
<envVar>USERNAME</envVar>
<vaultKey>username</vaultKey>
</com.datapipe.jenkins.vault.model.VaultSecretValue>
<com.datapipe.jenkins.vault.model.VaultSecretValue>
<envVar>PASSWORD</envVar>
<vaultKey>password</vaultKey>
</com.datapipe.jenkins.vault.model.VaultSecretValue>
</secretValues>
</com.datapipe.jenkins.vault.model.VaultSecret>
<com.datapipe.jenkins.vault.model.VaultSecret>
<path>secret/my-secret2</path>
<engineVersion>2</engineVersion>
<secretValues>
<com.datapipe.jenkins.vault.model.VaultSecretValue>
<envVar>USERNAME2</envVar>
<vaultKey>username2</vaultKey>
</com.datapipe.jenkins.vault.model.VaultSecretValue>
<com.datapipe.jenkins.vault.model.VaultSecretValue>
<envVar>PASSWORD2</envVar>
<vaultKey>password2</vaultKey>
</com.datapipe.jenkins.vault.model.VaultSecretValue>
</secretValues>
</com.datapipe.jenkins.vault.model.VaultSecret>
</vaultSecrets>
<valuesToMask/>
<vaultAccessor/>
</com.datapipe.jenkins.vault.VaultBuildWrapper>
</buildWrappers>
</project>