From: Andrew Grimberg Date: Tue, 25 Jul 2017 20:30:23 +0000 (-0700) Subject: Fix docker login for custom registry X-Git-Tag: v0.5.3^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=b2c0cd2452fced0db95950dbe65fce1ac70f8dfe;p=releng%2Fglobal-jjb.git Fix docker login for custom registry Custom registry detection fails to be detected if the corresponding Jenkins environment variable is not properly referenced. Change-Id: I618836ca4e9364045b01c7d710ac00f359a1e025 Signed-off-by: Andrew Grimberg --- diff --git a/shell/docker-login.sh b/shell/docker-login.sh index 4b8233d7..2c8a40bb 100644 --- a/shell/docker-login.sh +++ b/shell/docker-login.sh @@ -59,7 +59,7 @@ do_login() { docker login -u "$USER" -p "$PASS" -e "$2" "$1" } -if [ "${REGISTRY:-none}" != 'none' ] +if [ "${DOCKER_REGISTRY:-none}" != 'none' ] then for PORT in $REGISTRY_PORTS do