From 356f14e505f23033c69223649b3f746300f0222f Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Fri, 20 Dec 2019 11:58:23 -0500 Subject: [PATCH] DockerHub token --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 735e436..4b8b57a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,7 @@ pipeline { GITHUB_URL = 'git@github.com:RightBrain-Networks/auto-semver.git' DOCKER_REGISTRY = credentials('RbnDockerRegistry') GITHUB_KEY = 'rbn-ops github' + DOCKER_CREDENTIALS = 'rbnopsDockerHubToken' //Image tag to use for self-versioning SELF_SEMVER_TAG = "develop" @@ -55,7 +56,7 @@ pipeline { steps { // Authenticate & push to DockerHub - withCredentials([usernamePassword(credentialsId: creds, usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD')]) { + withCredentials([usernamePassword(credentialsId: env.DOCKER_CREDENTIALS, usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD')]) { sh(""" docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD} docker push rbnops/auto-semver:${env.VERSION}