diff --git a/Jenkinsfile b/Jenkinsfile index 0de18e5..a078479 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -53,10 +53,11 @@ pipeline { // } steps { script { - withCredentials( + withCredentials([usernamePassword( credentialsId: env.CREDENTIALS_ID, usernameVariable: 'JENKINS_USERNAME', - passwordVariable: 'JENKINS_PASSWORD') { + passwordVariable: 'JENKINS_PASSWORD' + )]) { docker.withRegistry(env.DOCKER_REGISTRY, env.CREDENTIALS_ID) { DOCKER_IMAGE.push("${BUILD_NUMBER}") DOCKER_IMAGE.push('latest')