jenkins-job-builder/tests/wrappers/fixtures/vault-minimal.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

29 lines
1.0 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>1</engineVersion>
<failIfNotFound>true</failIfNotFound>
<skipSslVerification>false</skipSslVerification>
</configuration>
<vaultSecrets>
<com.datapipe.jenkins.vault.model.VaultSecret>
<path>secret/my-token</path>
<engineVersion>1</engineVersion>
<secretValues>
<com.datapipe.jenkins.vault.model.VaultSecretValue>
<envVar>TOKEN</envVar>
<vaultKey>token</vaultKey>
</com.datapipe.jenkins.vault.model.VaultSecretValue>
</secretValues>
</com.datapipe.jenkins.vault.model.VaultSecret>
</vaultSecrets>
<valuesToMask/>
<vaultAccessor/>
</com.datapipe.jenkins.vault.VaultBuildWrapper>
</buildWrappers>
</project>