Fix docker login in Jenkinsfile
@@ -69,7 +69,7 @@ def publishCliVersion(architectures) {
def buildPublishDockerImage(version, jfrogCliRepoDir) {
dir("$jfrogCliRepoDir") {
docker.build("jfrog-docker-reg2.bintray.io/jfrog/jfrog-cli-go:$version")
- sh '#!/bin/sh -e\n' + 'echo $KEY' + 'docker login --username=$USER_NAME --password-stdin jfrog-docker-reg2.bintray.io/jfrog'
+ sh '#!/bin/sh -e\n' + 'echo $KEY | docker login --username=$USER_NAME --password-stdin jfrog-docker-reg2.bintray.io/jfrog'
sh "docker push jfrog-docker-reg2.bintray.io/jfrog/jfrog-cli-go:$version"
}
}
