From b2c0cd2452fced0db95950dbe65fce1ac70f8dfe Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Tue, 25 Jul 2017 13:30:23 -0700 Subject: [PATCH 1/1] 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 --- shell/docker-login.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.16.6