Update Jenkinsfile

This commit is contained in:
Mihai Georgescu 2023-11-29 10:44:49 +02:00 committed by GitHub
parent af701cf12a
commit e4fd84de57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
Jenkinsfile vendored
View file

@ -60,7 +60,7 @@ pipeline {
steps {
echo "now we will login to dockerhub"
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) {
echo "Login ended successfully"
} else {