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

Docker build publish plugin throws error "Please login prior to push" after build the image

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      [service] $ docker push registry/dev/service
      The push refers to a repository [registry/dev/service] (len: 1)
      Sending image list
      
      Please login prior to push:
      Username: EOF
      Build step 'Docker Build and Publish' marked build as failure
      

      Currently installed 'CloudBees Docker Build and Publish plugin' with version 1.0

        Attachments

          Activity

          Hide
          csanchez Carlos Sanchez added a comment -

          that means your credentials are incorrect

          Show
          csanchez Carlos Sanchez added a comment - that means your credentials are incorrect
          Hide
          dslupytskyi Dmytro Slupytskyi added a comment -

          this is odd, because i use this credentials more than week or may be two. and no updates with jenkins or plugins recently was done

          created additional jenkins credentials for registry and it works (old jenkins credentials have incorrect password)

          thank you for help

          Show
          dslupytskyi Dmytro Slupytskyi added a comment - this is odd, because i use this credentials more than week or may be two. and no updates with jenkins or plugins recently was done created additional jenkins credentials for registry and it works (old jenkins credentials have incorrect password) thank you for help
          Hide
          mihirvora Mihir Vora added a comment -

          Sorry if i shouldn't open this issue again but i am running into the exact same issue,

          I have confirmed that the user id and password work fine by manually pushing the image from the remote slave, the issue is when i try to push the same using the plugin it breaks.

          Additionally if I try to

          docker login -u abcdef -p ******* -e abcdef@abc.com docker-registry.com

          <Plugin Step>

          docker logout docker-registry.com

          This setup works fine, seems to me like something is not getting passed (especially the credentials)

          Below are the details of the plugins installed
          CloudBees Docker Build and Publish plugin - 1.0
          Docker Commons Plugin - 1.2
          Credentials Plugin - 1.23

          Can you please help..!

          Thanks,
          Mihir

          Show
          mihirvora Mihir Vora added a comment - Sorry if i shouldn't open this issue again but i am running into the exact same issue, I have confirmed that the user id and password work fine by manually pushing the image from the remote slave, the issue is when i try to push the same using the plugin it breaks. Additionally if I try to docker login -u abcdef -p ******* -e abcdef@abc.com docker-registry.com <Plugin Step> docker logout docker-registry.com This setup works fine, seems to me like something is not getting passed (especially the credentials) Below are the details of the plugins installed CloudBees Docker Build and Publish plugin - 1.0 Docker Commons Plugin - 1.2 Credentials Plugin - 1.23 Can you please help..! Thanks, Mihir
          Hide
          kopax D KA added a comment -

          I have the same issue, I can't push the layer, it keep retrying.

          Show
          kopax D KA added a comment - I have the same issue, I can't push the layer, it keep retrying.
          Hide
          mrichar2 Mark R added a comment - - edited

          I am having the same issue. I have the latest version of the plugin.

          Show
          mrichar2 Mark R added a comment - - edited I am having the same issue. I have the latest version of the plugin.
          Hide
          mrichar2 Mark R added a comment -

          I attached a debugger and managed to figure out my issue. My /home/jenkins/.dockercfg file had both a http and https url endpoint for my registry. The https endpoint had the correct password set. The http one did not. This may have something to do with me recently changing my password. To correct it I removed the stale http entry.

          Show
          mrichar2 Mark R added a comment - I attached a debugger and managed to figure out my issue. My /home/jenkins/.dockercfg file had both a http and https url endpoint for my registry. The https endpoint had the correct password set. The http one did not. This may have something to do with me recently changing my password. To correct it I removed the stale http entry.

            People

            Assignee:
            csanchez Carlos Sanchez
            Reporter:
            dslupytskyi Dmytro Slupytskyi
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: