fix repo cred id

This commit is contained in:
Nana Janashia
2020-12-04 13:10:16 +01:00
parent 9c7552b5c9
commit c204af2a10

2
Jenkinsfile vendored
View File

@@ -31,7 +31,7 @@ pipeline {
steps {
script {
echo "building the docker image..."
withCredentials([usernamePassword(credentialsId: 'docker-hub-repo', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
withCredentials([usernamePassword(credentialsId: 'docker-hub', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
sh "docker build -t nanajanashia/demo-app:${IMAGE_NAME} ."
sh "echo $PASS | docker login -u $USER --password-stdin"
sh "docker push nanajanashia/demo-app:${IMAGE_NAME}"