mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
Jenkinsfile fix: docker login
This commit is contained in:
parent
859af87145
commit
5fa7bef654
1 changed files with 2 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -66,7 +66,7 @@ pipeline {
|
|||
echo 'Docker Repository Login'
|
||||
script{
|
||||
withCredentials([usernamePassword(credentialsId: 'docker-cred', usernameVariable: 'USER', passwordVariable: 'PASS' )]){
|
||||
sh 'echo $PASS | docker login -u $USER --password-stdin $DOCKER_STORAGE'
|
||||
sh 'echo $PASS | docker login -u $USER --password-stdin'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ pipeline {
|
|||
echo 'Docker Repository Login'
|
||||
script{
|
||||
withCredentials([usernamePassword(credentialsId: 'docker-cred', usernameVariable: 'USER', passwordVariable: 'PASS' )]){
|
||||
sh 'echo $PASS | docker login -u $USER --password-stdin $DOCKER_STORAGE'
|
||||
sh 'echo $PASS | docker login -u $USER --password-stdin'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue