• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • docker-workflow-plugin
    • None
    • jenkins 2.121.3

      docker.withRegistry failed to login with a password that starts with '$' character.

       

      steps {
         script {
           docker.withRegistry(env.DOCKER_REGISTRY_URL,     env.DOCKER_REGISTRY_CREDENTIALS_ID) {
              docker.image(env.DOCKER_IMAGE_NAME_WITH_TAG).push()
           }
         }
      }

          [JENKINS-53770] docker.withRegistry failed to login

          Phu Nguyen created issue -
          Phu Nguyen made changes -
          Attachment Original: Screen Shot 2018-09-25 at 2.34.28 PM.png [ 44596 ]
          Phu Nguyen made changes -
          Attachment New: Screen Shot 2018-09-25 at 2.54.12 PM.png [ 44597 ]
          Phu Nguyen made changes -
          Description Original: docker.withRegistry failed to login with password starts with '$' character.

           

          {{steps {}}
          {{   script {}}
          {{     docker.withRegistry(env.DOCKER_REGISTRY_URL,     env.DOCKER_REGISTRY_CREDENTIALS_ID) {}}
          {{        docker.image(env.DOCKER_IMAGE_NAME_WITH_TAG).push()}}
          {{     }}}
          {{   }}}
          {{ }}}
          New: docker.withRegistry failed to login with password starts with '$' character.

           

          {{steps {}}
           {{   script {}}
           {{     docker.withRegistry(env.DOCKER_REGISTRY_URL,     env.DOCKER_REGISTRY_CREDENTIALS_ID) {}}
           {{        docker.image(env.DOCKER_IMAGE_NAME_WITH_TAG).push()}}
           {{     }}}
           {{   }}}
          }
          Phu Nguyen made changes -
          Description Original: docker.withRegistry failed to login with password starts with '$' character.

           

          {{steps {}}
           {{   script {}}
           {{     docker.withRegistry(env.DOCKER_REGISTRY_URL,     env.DOCKER_REGISTRY_CREDENTIALS_ID) {}}
           {{        docker.image(env.DOCKER_IMAGE_NAME_WITH_TAG).push()}}
           {{     }}}
           {{   }}}
          }
          New: docker.withRegistry failed to login with a password that starts with '$' character.

           

          {{steps {}}
           {{   script {}}
           {{     docker.withRegistry(env.DOCKER_REGISTRY_URL,     env.DOCKER_REGISTRY_CREDENTIALS_ID) {}}
           {{        docker.image(env.DOCKER_IMAGE_NAME_WITH_TAG).push()}}
           {{     }}}
           {{   }}}
           }

          Jared Biel added a comment -

          In case anyone runs across this, I've opened a PR (https://github.com/jenkinsci/docker-commons-plugin/pull/86) to solve this issue. The artifact from that PR build can be manually installed in Jenkins until it's merged or fixed in some other way (https://ci.jenkins.io/job/Plugins/job/docker-commons-plugin/job/PR-86/1/artifact/org/jenkins-ci/plugins/docker-commons/1.17-rc347.f3e1aa3e5799/docker-commons-1.17-rc347.f3e1aa3e5799.hpi).

          Jared Biel added a comment - In case anyone runs across this, I've opened a PR ( https://github.com/jenkinsci/docker-commons-plugin/pull/86 ) to solve this issue. The artifact from that PR build can be manually installed in Jenkins until it's merged or fixed in some other way ( https://ci.jenkins.io/job/Plugins/job/docker-commons-plugin/job/PR-86/1/artifact/org/jenkins-ci/plugins/docker-commons/1.17-rc347.f3e1aa3e5799/docker-commons-1.17-rc347.f3e1aa3e5799.hpi ).

            Unassigned Unassigned
            maiviet Phu Nguyen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: