Docker agent in declarative pipeline failing to login to custom registry

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      We have an image that is stored in AWS ECR. Previously this step has been working but broke when we updated the Docker Workflow plugin from 1.15.1 to 1.17. We now get a `docker login failed` message.

      This is for a declarative pipeline and our configuration is as follows.

      stage('Docker step') {
           agent {
               docker {
                   image "xxxxxxxx"
                   registryUrl "https://xxxxxxxxx.dkr.ecr.us-east-1.amazonaws.com"
                   registryCredentialsId "credentials-id"
               }
           }
       }

      When we roll the plugin back to 1.15.1 the issue no longer occurs.
      This may be related to JENKINS-38018

            Assignee:
            Unassigned
            Reporter:
            Daniel Fosbery
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: