mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 00:05:50 +00:00
changed docker credentials again
This commit is contained in:
parent
bf877f96be
commit
d526e1d09b
1 changed files with 3 additions and 1 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -48,7 +48,9 @@ pipeline{
|
||||||
}
|
}
|
||||||
stage('docker login'){
|
stage('docker login'){
|
||||||
steps{
|
steps{
|
||||||
withCredentials([string(credentialsId: 'DOCKER_LOG', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) {
|
// withCredentials([string(credentialsId: 'DOCKER_LOG', usernameVariable: 'USER', passwordVariable: 'PASSWORD')])
|
||||||
|
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'DOCKER_LOG',usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']])
|
||||||
|
{
|
||||||
sh 'docker login -u $USER -p $PASSWORD'
|
sh 'docker login -u $USER -p $PASSWORD'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue