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

Clone shallow submodules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-client-plugin
    • None
    • Jenkins 2.361.1
      git-client-plugin 3.11.2

      When I clone of a repo with (in this case) 23 submodules, shallow with a depth of 1, just the last one cause the following error:

      on.plugins.git.GitException: Command "C:\Program Files\Git\cmd\git.exe submodule update --depth=1 Config/CAN/CAN_Project_Specific/CanDatabase" returned status code 1:
       stdout: 
       stderr: Cloning into 'D:/jenkins_agent/workspace/mylib/DEV_Build/repo/Config/CAN/CAN_Project_Specific/CanDatabase'...
       fatal: remote transport reported error
       fatal: clone of 'ssh://git@mybitbucket.de/mscandb/can-database.git' into submodule path 'D:/jenkins_agent/workspace/mylib/DEV_Build/repo/Config/CAN/CAN_Project_Specific/CanDatabase' failed
       Failed to clone 'Config/CAN/CAN_Project_Specific/CanDatabase'. Retry scheduled
       Cloning into 'D:/jenkins_agent/workspace/mylib/DEV_TeamCenterBuild/repo/Config/CAN/CAN_Project_Specific/CanDatabase'...
       fatal: remote transport reported error
       fatal: clone of 'ssh://git@mybitbucket.de/mscandb/can-database.git' into submodule path 'D:/jenkins_agent/workspace/mylib/DEV_Build/repo/Config/CAN/CAN_Project_Specific/CanDatabase' failed
       Failed to clone 'Config/CAN/CAN_Project_Specific/CanDatabase' a second time, aborting
       
       	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2675)
       	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2099)
       	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:85)
       	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.lambda$execute$0(CliGitAPIImpl.java:1506)
       	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
       	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:74)
       	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
       	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
       	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
       	at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:323)
       	at java.base/java.util.concurrent.ExecutorCompletionService.submit(ExecutorCompletionService.java:184)
       	at org.jenkinsci.plugins.gitclient.cgit.GitCommandsExecutor.submitRemainingCommand(GitCommandsExecutor.java:98)
       	at org.jenkinsci.plugins.gitclient.cgit.GitCommandsExecutor.invokeAll(GitCommandsExecutor.java:92)
       Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from myjenkins.com/123.456.789.123:57427
       		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
       		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
       		at hudson.remoting.Channel.call(Channel.java:1000)
       		at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:143)
       		at jdk.internal.reflect.GeneratedMethodAccessor1102.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 org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:129)
       		at com.sun.proxy.$Proxy199.execute(Unknown Source)
       		at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:160)
       		at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1393)
       		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
       		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
       		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
       		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
       		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)
       Caused: hudson.plugins.git.GitException
       	at org.jenkinsci.plugins.gitclient.cgit.GitCommandsExecutor.checkResult(GitCommandsExecutor.java:110)
       	at org.jenkinsci.plugins.gitclient.cgit.GitCommandsExecutor.invokeAll(GitCommandsExecutor.java:91)
       	at org.jenkinsci.plugins.gitclient.cgit.GitCommandsExecutor.invokeAll(GitCommandsExecutor.java:49)
       	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.execute(CliGitAPIImpl.java:1509)
       	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:158)
       	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:151)
       	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
       	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
       	at hudson.remoting.Request$2.run(Request.java:376)
       	at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
       	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 hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:125)
       Caused: java.io.IOException: Could not perform submodule update
       	at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:165)
       	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1393)
       	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
       	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
       	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
       	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
       	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)
      

      When I switch of the shollow clone it works fine.

            Unassigned Unassigned
            timsch Tim Schlüter
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: