Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Trivial
-
Resolution: Won't Do
-
Component/s: docker-commons-plugin
-
Labels:None
-
Environment:Docker commons plugin Version 1.2 (Jul 29 2015)
-
Similar Issues:
Description
The Docker registry URL value may be change as per project but not for the whole installation.
The current code looks like:
// DockerRegistryEndpoint.java /** * Gets the endpoint URL, such as "https://index.docker.io/v1/" */ public @Nonnull URL getEffectiveUrl() throws IOException { if (url != null) { return new URL(url); } else { return new URL("https://index.docker.io/v1/"); } }
It would be great to:
1. be able to configure the registry for the whole project
2. retrieve the registry value from a environment variable
This would be a very nice feature to have as the registry host/url can appear multiple times in a realistic jenkins job config and being able to factor it out as a build parameter can make job management easier and more consistent.