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

Error on docker image name: Name must follow the pattern

XMLWordPrintable

    • 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

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

              Created:
              Updated:
              Resolved: