Update JenkinsFile

This commit is contained in:
s464958 2024-12-05 19:16:58 +01:00
parent 422668dc65
commit 5e4a57cb12

View File

@ -15,11 +15,13 @@ pipeline {
}
stage('push') {
steps {
withCredentials([usernamePassword(credentialsId: 'DockerHub-LG', passwordVariable: 'PSWD', usernameVariable: 'LOGIN')]) {
script {
sh 'echo 'Makaron118912' | docker login -u "maciejm.01@interia.pl" --password-stdin'
sh 'echo ${PSWD} | docker login -u ${LOGIN} --password-stdin'
sh 'docker push ${DOCKER_REPO}:${IMG_NAME}'
}
}
}
}
}
}