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

Im getting an error during the task of jenkins shared library

      ERROR: <ul style='list-style-type: none; padding-left: 0; margin: 0'><li>Name must follow the pattern '[a-zA-Z0-9]((\.|||-)[a-zA-Z0-9]+)$'</li><li>*Tag must follow the pattern '[a-zA-Z0-9_]([a-zA-Z0-9_.-]){0,127}'</li></ul> 

          [JENKINS-67657] Im getting an error during the task of jenkins shared library

          Nikhil Varma created issue -
          Nikhil Varma made changes -
          Description Original: Started by user Nikhil VarmaStarted by user Nikhil VarmaLoading library sharedlibrary@mainAttempting to resolve main from remote references... > git --version # timeout=10 > git --version # 'git version 2.25.1'using GIT_ASKPASS to set credentials  > git ls-remote -h -- https://github.com/nikhilvarma940/sharedlibrary.git # timeout=10Found match: refs/heads/main revision 8403b74e0534070618f435cfd94a12871678afffThe recommended git tool is: NONEusing credential github > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/docker@libs/sharedlibrary/.git # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/nikhilvarma940/sharedlibrary.git # timeout=10Fetching without tagsFetching upstream changes from https://github.com/nikhilvarma940/sharedlibrary.git&#xA0;> git --version # timeout=10 > git --version # 'git version 2.25.1'using GIT_ASKPASS to set credentials  > git fetch --no-tags --force --progress -- https://github.com/nikhilvarma940/sharedlibrary.git +refs/heads/*:refs/remotes/origin/* # timeout=10Checking out Revision 8403b74e0534070618f435cfd94a12871678afff (main) > git config core.sparsecheckout # timeout=10 > git checkout -f 8403b74e0534070618f435cfd94a12871678afff # timeout=10Commit message: "Update dockerBuild.groovy" > git rev-list --no-walk 8403b74e0534070618f435cfd94a12871678afff # timeout=10[Pipeline] Start of Pipeline[Pipeline] nodeRunning on Docker in /home/ubuntu/workspace/docker[Pipeline] \{[Pipeline] withEnv[Pipeline] {[Pipeline] stage[Pipeline] { (POLL SCM)[Pipeline] checkoutThe recommended git tool is: NONEusing credential githubFetching changes from the remote Git repositoryChecking out Revision cca9ff4cd7bfcee84dbda01e13c4ae66d571d2a1 (origin/main)Commit message: "Update Dockerfile" > git rev-parse --resolve-git-dir /home/ubuntu/workspace/docker/.git # timeout=10 > git config remote.origin.url https://github.com/nikhilvarma940/Dockerfile.git # timeout=10Fetching upstream changes from https://github.com/nikhilvarma940/Dockerfile.git&#xA0;> git --version # timeout=10 > git --version # 'git version 2.25.1'using GIT_ASKPASS to set credentials  > git fetch --tags --force --progress -- https://github.com/nikhilvarma940/Dockerfile.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse origin/main^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f cca9ff4cd7bfcee84dbda01e13c4ae66d571d2a1 # timeout=10 > git rev-list --no-walk cca9ff4cd7bfcee84dbda01e13c4ae66d571d2a1 # timeout=10[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] \{ (BUILD IMAGE)[Pipeline] script[Pipeline] {[Pipeline] }[Pipeline] // script[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] \{ (PUSH HUB)Stage "PUSH HUB" skipped due to earlier failure(s)[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] \{ (DEPLOY IMAGE)Stage "DEPLOY IMAGE" skipped due to earlier failure(s)[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // withEnv[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: <ul style='list-style-type: none; padding-left: 0; margin: 0'><li>Name must follow the pattern &#039;^[a-zA-Z0-9]+((\.|_|__|-+)[a-zA-Z0-9]+)*$&#039;</li><li>Tag must follow the pattern &#039;^[a-zA-Z0-9_]([a-zA-Z0-9_.-])\{0,127}&#039;</li></ul> at hudson.util.FormValidation.respond(FormValidation.java:288) at hudson.util.FormValidation.aggregate(FormValidation.java:237) at org.jenkinsci.plugins.docker.commons.credentials.ImageNameValidator.validateUserAndRepo(ImageNameValidator.java:116) 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) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:151) at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:91) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20) at org.jenkinsci.plugins.docker.workflow.Docker.build(Docker.groovy:85) at org.jenkinsci.plugins.docker.workflow.Docker.build(Docker.groovy) at dockerBuild.call(dockerBuild.groovy:30) at ___cps.transform___(Native Method) at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83) at jdk.internal.reflect.GeneratedMethodAccessor429.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.LocalVariableBlock$LocalVariable.get(LocalVariableBlock.java:39) at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30) at com.cloudbees.groovy.cps.impl.LocalVariableBlock.evalLValue(LocalVariableBlock.java:28) at com.cloudbees.groovy.cps.LValueBlock$BlockImpl.eval(LValueBlock.java:55) at com.cloudbees.groovy.cps.LValueBlock.eval(LValueBlock.java:16) at com.cloudbees.groovy.cps.Next.step(Next.java:83) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163) at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129) at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:402) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:314) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:278) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)Finished: FAILURE New: ERROR: <ul style='list-style-type: none; padding-left: 0; margin: 0'><li>*Name must follow the pattern* '^[a-zA-Z0-9]+((\.|_|__|-_+_)[a-zA-Z0-9]+)*$'</li><li>*_**Tag must follow the pattern* _'_^_[a-zA-Z0-9_]([a-zA-Z0-9_.-])\{0,127}'</li></ul>_ 
          Nikhil Varma made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Mark Waite made changes -
          Component/s Original: hudson-pview-plugin [ 16079 ]

            Unassigned Unassigned
            nikhilvarma940 Nikhil Varma
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: