Fix docker login for custom registry 29/5629/1 v0.5.3
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Tue, 25 Jul 2017 20:30:23 +0000 (13:30 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Tue, 25 Jul 2017 20:30:23 +0000 (13:30 -0700)
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 <agrimberg@linuxfoundation.org>
shell/docker-login.sh

index 4b8233d..2c8a40b 100644 (file)
@@ -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