Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30788

Allow to configure the Docker registry URL throught a ENV for the whole project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Trivial Trivial
    • docker-commons-plugin
    • None
    • Docker commons plugin Version 1.2 (Jul 29 2015)

      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

            Unassigned Unassigned
            paurullan Pau Rullan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: