From 5e78b35168dc15f87cd43c6a81fd03d6cd3f886f Mon Sep 17 00:00:00 2001 From: maplesond Date: Fri, 31 May 2019 11:04:28 +0100 Subject: [PATCH] Fixing dockerhub upload --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 59db7300..1016701a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -72,7 +72,7 @@ podTemplate( if(env.BRANCH_NAME == 'master') { image.push("stable") // Dockerhub - withCredentials([usernamePassword(credentialsId: 'dockerhub', username: 'DOCKERHUB_USER', password: 'DOCKERHUB_PASS')]) { + withCredentials([usernamePassword(credentialsId: 'dockerhub', usernameVariable: 'DOCKERHUB_USER', passwordVariable: 'DOCKERHUB_PASS')]) { sh "docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS" sh "docker tag harbor.sdlmapleson.net/portcullis/portcullis:${SEMVER} maplesond/portcullis:${SEMVER}" sh "docker tag harbor.sdlmapleson.net/portcullis/portcullis:${SEMVER} maplesond/portcullis:latest"