dimacus / hashicorp-vault-pipeline-plugin

Jenkins plugin to allow for the use of Hashicorp's Vault from within a pipeline.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hashicorp Vault Pipeline Plugin

Enables the use of vault from within a pipeline.

Dependencies

Examples

Using gloabl vault configuration
pipeline {
    agent any
    environment {
        SECRET = vault path: 'secrets', key: 'username'
    }
    stages {
        stage("read vault key") {
            steps {
                echo "${SECRET}"
            }
        }
    }
}
Using pipeline specific configuration
pipeline {
    agent any
    environment {
        SECRET = vault path: 'secrets', key: 'username', vaultUrl: 'https://my-vault.com:8200', credentialsId: 'my-creds'
    }
    stages {
        stage("read vault key") {
            steps {
                echo "${SECRET}"
            }
        }
    }
}

About

Jenkins plugin to allow for the use of Hashicorp's Vault from within a pipeline.


Languages

Language:Java 100.0%