From 2900a0b9e4c9ff54b171d6159630228c887f47b1 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Fri, 4 May 2018 00:13:36 +1000 Subject: [PATCH] Fix CI pipeline --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7290d245..cf0c9f71 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,7 +54,8 @@ node-prune''' sh 'docker tag $TEMP_IMAGE_NAME docker.io/jc21/$IMAGE_NAME:latest' sh 'docker tag $TEMP_IMAGE_NAME docker.io/jc21/$IMAGE_NAME:$TAG_VERSION' - withDockerRegistry([credentialsId: 'jc21-dockerhub', url: '']) { + withCredentials([usernamePassword(credentialsId: 'jc21-dockerhub', passwordVariable: 'dpass', usernameVariable: 'duser')]) { + sh "docker login -u '${duser}' -p '$dpass'" sh 'docker push docker.io/jc21/$IMAGE_NAME:latest' sh 'docker push docker.io/jc21/$IMAGE_NAME:$TAG_VERSION' }