Jenkins fail to checkout git branch with "/" in its name

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

XMLWordPrintable

      On clean workspace, the checkout will work, but on 2nd run, it will fail with ...

      17:35:49  [Pipeline] checkout
      17:35:49  The recommended git tool is: NONE
      17:35:49  No credentials specified
      17:35:49  Fetching changes from the remote Git repository
      17:35:50  ERROR: Error fetching remote repo 'origin'
      17:35:50  hudson.plugins.git.GitException: Failed to fetch from https://gitlab.com/un3k8esh/ci-automation.git
      17:35:50  	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
      17:35:50  	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1241)
      17:35:50  	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1305)
      17:35:50  	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
      17:35:50  	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
      17:35:50  	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
      17:35:50  	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      17:35:50  	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      17:35:50  	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      17:35:50  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      17:35:50  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      17:35:50  	at java.base/java.lang.Thread.run(Thread.java:829)
      17:35:50  Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- https://gitlab.com/un3k8esh/ci-automation.git +refs/heads/*:refs/remotes/origin/*" returned status code 1:
      17:35:50  stdout: 
      17:35:50  stderr: error: cannot lock ref 'refs/remotes/origin/cnv-4.12/metallb-disconnected': 'refs/remotes/origin/cnv-4.12' exists; cannot create 'refs/remotes/origin/cnv-4.12/metallb-disconnected'
      17:35:50  From https://gitlab.com/un3k8esh/ci-automation
      17:35:50   ! [new branch]        cnv-4.12/metallb-disconnected -> origin/cnv-4.12/metallb-disconnected  (unable to update local ref)
      17:35:50  error: cannot lock ref 'refs/remotes/origin/cnv-4.13/hack-kubeadmin': 'refs/remotes/origin/cnv-4.13' exists; cannot create 'refs/remotes/origin/cnv-4.13/hack-kubeadmin'
      17:35:50   ! [new branch]        cnv-4.13/hack-kubeadmin -> origin/cnv-4.13/hack-kubeadmin  (unable to update local ref)
      17:35:50  error: cannot lock ref 'refs/remotes/origin/cnv-4.13/rename-bm09-nodes': 'refs/remotes/origin/cnv-4.13' exists; cannot create 'refs/remotes/origin/cnv-4.13/rename-bm09-nodes'
      17:35:50   ! [new branch]        cnv-4.13/rename-bm09-nodes -> origin/cnv-4.13/rename-bm09-nodes  (unable to update local ref)
      17:35:50  error: cannot lock ref 'refs/remotes/origin/cnv-4.14/hack-kubeadmin': 'refs/remotes/origin/cnv-4.14' exists; cannot create 'refs/remotes/origin/cnv-4.14/hack-kubeadmin'
      17:35:50   ! [new branch]        cnv-4.14/hack-kubeadmin -> origin/cnv-4.14/hack-kubeadmin  (unable to update local ref)
      17:35:50  error: cannot lock ref 'refs/remotes/origin/cnv-4.14/hyperdebug': 'refs/remotes/origin/cnv-4.14' exists; cannot create 'refs/remotes/origin/cnv-4.14/hyperdebug'
      17:35:50   ! [new branch]        cnv-4.14/hyperdebug     -> origin/cnv-4.14/hyperdebug  (unable to update local ref)
      17:35:50  error: cannot lock ref 'refs/remotes/origin/cnv-4.14/nexus': 'refs/remotes/origin/cnv-4.14' exists; cannot create 'refs/remotes/origin/cnv-4.14/nexus'
      17:35:50   ! [new branch]        cnv-4.14/nexus          -> origin/cnv-4.14/nexus  (unable to update local ref)
      17:35:50  error: some local refs could not be updated; try running
      17:35:50   'git remote prune https://gitlab.com/un3k8esh/ci-automation.git' to remove any old, conflicting branches
      17:35:50  
      17:35:50  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2842)
      17:35:50  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2185)
      17:35:50  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:635)
      17:35:50  	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:170)
      17:35:50  	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
      17:35:50  	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
      17:35:50  	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      17:35:50  	at hudson.remoting.Request$2.run(Request.java:377)
      17:35:50  	at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
      17:35:50  	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      17:35:50  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      17:35:50  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      17:35:50  	at java.base/java.lang.Thread.run(Thread.java:829)
      17:35:50  	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to ibmc-upi-executor
      17:35:50  		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
      17:35:50  		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
      17:35:50  		at hudson.remoting.Channel.call(Channel.java:1000)
      17:35:50  		at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:153)
      17:35:50  		at jdk.internal.reflect.GeneratedMethodAccessor2153.invoke(Unknown Source)
      17:35:50  		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      17:35:50  		at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      17:35:50  		at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:138)
      17:35:50  		at com.sun.proxy.$Proxy304.execute(Unknown Source)
      17:35:50  		at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:997)
      17:35:50  		at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1241)
      17:35:50  		at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1305)
      17:35:50  		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
      17:35:50  		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
      17:35:50  		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
      17:35:50  		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      17:35:50  		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      17:35:50  		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      17:35:50  		at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      17:35:50  		at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      17:35:50  		at java.base/java.lang.Thread.run(Thread.java:829)
      

            Assignee:
            Unassigned
            Reporter:
            un3k8esh
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: