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

Error on docker image name: Name must follow the pattern

    • 1.19

      Since updating my jenkins plugins to latest versions today, i get the folloging error

      ERROR: Name must follow the pattern '^[a-zA-Z0-9]+((\.|_|__|-+)[a-zA-Z0-9]+)*$'
      	at hudson.util.FormValidation._errorWithMarkup(FormValidation.java:266)
      	at hudson.util.FormValidation.errorWithMarkup(FormValidation.java:252)
      	at hudson.util.FormValidation.error(FormValidation.java:143)
      	at hudson.util.FormValidation.error(FormValidation.java:168)
      	at org.jenkinsci.plugins.docker.commons.credentials.ImageNameValidator.validateName(ImageNameValidator.java:209)
      	at org.jenkinsci.plugins.docker.commons.credentials.ImageNameValidator.validateUserAndRepo(ImageNameValidator.java:105)
      	at org.jenkinsci.plugins.docker.commons.credentials.ImageNameValidator.checkUserAndRepo(ImageNameValidator.java:126)
      	at org.jenkinsci.plugins.docker.commons.credentials.ImageNameValidator$checkUserAndRepo.call(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      	at org.jenkinsci.plugins.docker.workflow.Docker.check(Docker.groovy:97)
      

      Part of pipeline.

                          agent {
                              docker {
                                  label 'docker && linux'
                                  image 'ghcr.visualon.de/visualon/builder:1.0.21@sha256:56930391cf0e1be83108422bbef43001650cfb75f64b3429928f0c5986fdb750'
                              }
                          }
                          steps {
                              sh 'yarn install --frozen-lockfile'
                          }
      

      It seems that digest pinning is no longer allowd

          [JENKINS-67572] Error on docker image name: Name must follow the pattern

          Michael Kriese created issue -
          Michael Kriese made changes -
          Component/s New: docker-commons-plugin [ 20628 ]
          Ing. Christoph Obexer made changes -
          Assignee New: rsandell [ rsandell ]
          James Nord made changes -
          Link New: This issue is caused by SECURITY-1878 [ SECURITY-1878 ]
          Jesse Glick made changes -
          Assignee Original: rsandell [ rsandell ] New: Michael Kriese [ viceice ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Jesse Glick made changes -
          Labels New: regression
          Basil Crow made changes -
          Released As New: 1.19
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Rene Pfeuffer made changes -
          Comment [ I still get this exception after I updated to version 1.19 and restarted Jenkins (for example in this build: https://oss.cloudogu.com/jenkins/job/scm-manager-github/job/test-runner-pipeline/job/master/462/console). The tag is {{cloudogu/scm-manager:2.30.2-67bd96ea8-1103}}. ]

            viceice Michael Kriese
            viceice Michael Kriese
            Votes:
            6 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: