diff --git a/Jenkinsfile b/Jenkinsfile index 2ef1e1a..c322b6e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}"