add vault secret

This commit is contained in:
Nick Darrell 2023-10-04 13:32:34 +00:00
parent 2204dcc28a
commit 0a3dc19f7c

10
Jenkinsfile vendored
View File

@ -11,6 +11,15 @@ pipeline {
stages {
stage('Build Kaniko image') {
steps {
withVault([ vaultSecrets: [
[
path: "ci/general",
engineVersion: 1,
secretValues: [
[envVar: 'NEXUS_TOKEN', vaultKey: 'SONATYPE_DEPLOYMENT_USER_TOKEN']
]
]
]]) {
withCredentials([usernamePassword(credentialsId: 'DockerHubAccessYardstick', usernameVariable: 'USER', passwordVariable: 'PASS')]) {
container('kaniko') {
checkout scm
@ -33,4 +42,5 @@ pipeline {
}
}
}
}
}