From 01b4f59879b10fd2bb868f3ea682bdaf6882473c Mon Sep 17 00:00:00 2001 From: nakamura Date: Sun, 24 Sep 2017 03:54:29 +0900 Subject: [PATCH] Remove endpoint protocol according to latest docker specific --- .../plugins/docker/commons/credentials/DockerRegistryToken.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/docker/commons/credentials/DockerRegistryToken.java b/src/main/java/org/jenkinsci/plugins/docker/commons/credentials/DockerRegistryToken.java index b16187ee..1da51856 100644 --- a/src/main/java/org/jenkinsci/plugins/docker/commons/credentials/DockerRegistryToken.java +++ b/src/main/java/org/jenkinsci/plugins/docker/commons/credentials/DockerRegistryToken.java @@ -106,7 +106,7 @@ public Void call() throws IOException { auths = json = new JSONObject(); } } - auths.put(endpoint.toString(), new JSONObject() + auths.put(endpoint.getHost(), new JSONObject() .accumulate("auth", getToken()) .accumulate("email", getEmail()));