add vault secret
This commit is contained in:
parent
2204dcc28a
commit
0a3dc19f7c
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -11,6 +11,15 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Build Kaniko image') {
|
stage('Build Kaniko image') {
|
||||||
steps {
|
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')]) {
|
withCredentials([usernamePassword(credentialsId: 'DockerHubAccessYardstick', usernameVariable: 'USER', passwordVariable: 'PASS')]) {
|
||||||
container('kaniko') {
|
container('kaniko') {
|
||||||
checkout scm
|
checkout scm
|
||||||
@ -34,3 +43,4 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user