From 1e6649b40358e97ac9cbe33cca818107b1e73a99 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Fri, 25 May 2018 16:15:24 +0300 Subject: [PATCH] update Jenkinsfile --- Jenkinsfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 558c101..d678bf9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,11 @@ pipeline { disableConcurrentBuilds() } + environment { + HUB_URL = credentials('docker_hub_url') + HUB_PATH = credentials('docker_hub_path') + } + stages { stage('Prepare') { steps { @@ -38,8 +43,6 @@ pipeline { credentialsId: 'docker-hub-credentials', usernameVariable: 'HUB_USER', passwordVariable: 'HUB_PASS' - urlVariable: 'HUB_URL' - pathVariable: 'HUB_PATH' )]) { sh 'echo ${HUB_PASS} | docker login -u ${HUB_USER} --password-stdin ${HUB_URL}' }