mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
af701cf12a
commit
e4fd84de57
1 changed files with 1 additions and 1 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -60,7 +60,7 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
echo "now we will login to dockerhub"
|
echo "now we will login to dockerhub"
|
||||||
script {
|
script {
|
||||||
def loginDocker = sh(script: 'echo $DOCKERHUB_CREDENTIALS_PSW | docker login -u $DOCKERHUB_CREDENTIALS_USR -p ', returnStatus: true)
|
def loginDocker = sh(script: 'echo $DOCKERHUB_CREDENTIALS_PSW | docker login -u $DOCKERHUB_CREDENTIALS_USR --password-stdin', returnStatus: true)
|
||||||
if (loginDocker == 0) {
|
if (loginDocker == 0) {
|
||||||
echo "Login ended successfully"
|
echo "Login ended successfully"
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue