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

    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

        Attachments

          Activity

          Hide
          wcrmak Raymond Mak added a comment -

          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. 

          Show
          wcrmak Raymond Mak added a comment - 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. 
          Hide
          jglick Jesse Glick added a comment -

          Use Pipeline libraries to factor out common code as needed.

          Show
          jglick Jesse Glick added a comment - Use Pipeline libraries to factor out common code as needed.

            People

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

              Dates

              Created:
              Updated:
              Resolved: