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()));