diff --git a/Jenkinsfile b/Jenkinsfile index f467ea4..6693f0a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,9 +28,9 @@ pipeline { steps { script { withCredentials([usernamePassword(credentialsId: "${DOCKERUSRPASS}", usernameVariable: 'REGISTRY_USER', passwordVariable: 'REGISTRY_TOKEN')]) { - sh """ - echo '${REGISTRY_TOKEN}' | docker login ${REGISTRY_URL} --username ${REGISTRY_USER} --password-stdin - """ + sh ' + echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_URL" --username ${REGISTRY_USER} --password-stdin + ' } } }