Today, to define DockerHub credentials, you have to define an empty url in docker.withRegistry('', 'my-dockerhub-credentials').

      It supports an empty string '' but not null.

      It would be nice to also support null: docker.withRegistry(null, 'my-dockerhub-credentials') and maybe to add a method such as docker.withRegistryCredentials(credentials).

          [JENKINS-31608] Better support of DockerHub credentials

          Cyrille Le Clerc created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 167040 ] New: JNJira + In-Review [ 182559 ]

            jglick Jesse Glick
            cleclerc Cyrille Le Clerc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: