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

withRegistry should support specifying a username/password

      When using the Azure Credentials plugin, I can set up a specific Service Principal credential type which will expose an AZURE_CLIENT_ID and AZURE_CLIENT_SECRET into my Pipeline's environment, which can be used as the username/password for an Azure Container Registry.

      Unfortunately, the docker.withRegistry() method only accepts a URI and Username/Password Credential type,

      It would be nice to support an overload of withRegistry() which accepts: uri, username, password

          [JENKINS-46108] withRegistry should support specifying a username/password

          Jared Lotti added a comment -

          Bump this, there is a different login flow with Azure Container Registry that I would love to see supported!

          Jared Lotti added a comment - Bump this, there is a different login flow with Azure Container Registry that I would love to see supported!

          michel added a comment -

          Hi,
          Is there any reason to not supporting  docker.withRegistry() using username/password credential type  ?
          Best Regards,
          Michel.

          michel added a comment - Hi, Is there any reason to not supporting  docker.withRegistry() using username/password credential type  ? Best Regards, Michel.

            Unassigned Unassigned
            rtyler R. Tyler Croy
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: