From 9e1a9a5a7b50466ab3b7f3d23789687ecdf26729 Mon Sep 17 00:00:00 2001 From: Amber Date: Sat, 3 Sep 2022 23:34:01 -0400 Subject: [PATCH] Ugh --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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')