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

Fail to submodule update --init --recursive with bitbucket

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None
    • git-plugin version: 4.11.3

      Jenkins fails to submodule update --init --recursive with Bitbucket

      For example, we have submodule:

      [submodule "thirdparty/poco"]
          path = thirdparty/poco
          url = https://bitbucket.web.domain.ru/scm/~user/poco.git 

      Try to clone repo:

      Running as SYSTEM
      Building in workspace C:\Users\user\AppData\Local\Jenkins\.jenkins\workspace\project
      The recommended git tool is: NONE
      using credential user
       > git.exe rev-parse --resolve-git-dir C:\Users\user\AppData\Local\Jenkins\.jenkins\workspace\project\.git # timeout=10
      Fetching changes from the remote Git repository
       > git.exe config remote.origin.url https://bitbucket.web.domain.org/scm/department/project.git # timeout=10
      Fetching upstream changes from https://bitbucket.web.domain.org/scm/department/project.git
       > git.exe --version # timeout=10
       > git --version # 'git version 2.36.1.windows.1'
      using GIT_SSH to set credentials 
       > git.exe fetch --tags --force --progress -- https://bitbucket.web.domain.org/scm/department/project.git +refs/heads/*:refs/remotes/origin/* # timeout=10
       > git.exe rev-parse "refs/remotes/origin/ci_intergration^{commit}" # timeout=10
      Checking out Revision da3aaa54e86c1b6a3006dab0d404d4e2598886c3 (refs/remotes/origin/ci_intergration)
       > git.exe config core.sparsecheckout # timeout=10
       > git.exe checkout -f da3aaa54e86c1b6a3006dab0d404d4e2598886c3 # timeout=10
      Commit message: "* update links"
       > git.exe rev-list --no-walk da3aaa54e86c1b6a3006dab0d404d4e2598886c3 # timeout=10
       > git.exe remote # timeout=10
       > git.exe submodule init # timeout=10
       > git.exe submodule sync # timeout=10
       > git.exe config --get remote.origin.url # timeout=10
       > git.exe submodule init # timeout=10
       > git.exe config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10
       > git.exe config --get submodule.thirdparty/poco.url # timeout=10
       > git.exe remote # timeout=10
       > git.exe config --get remote.origin.url # timeout=10
       > git.exe config -f .gitmodules --get submodule.thirdparty/poco.path # timeout=10
      ...
      using GIT_SSH to set credentials 
       > git.exe submodule update --init --recursive thirdparty/poco # timeout=10
      hudson.plugins.git.GitException: Command "git.exe submodule update --init --recursive thirdparty/poco" returned status code 1:
      stdout: 
      stderr: Cloning into 'C:/Users/user/AppData/Local/Jenkins/.jenkins/workspace/project/thirdparty/poco'...
      fatal: remote error: Repository not found
      The requested repository does not exist, or you do not have permission to
      access it.
      fatal: clone of 'https://bitbucket.web.domain.org/scm/~user/poco.git' into submodule path 'C:/Users/user/AppData/Local/Jenkins/.jenkins/workspace/project/thirdparty/poco' failed
      Failed to clone 'thirdparty/poco'. Retry scheduled
      Cloning into 'C:/Users/user/AppData/Local/Jenkins/.jenkins/workspace/project/thirdparty/poco'...
      fatal: remote error: Repository not found
      The requested repository does not exist, or you do not have permission to
      access it.
      fatal: clone of 'https://bitbucket.web.domain.org/scm/~user/poco.git' into submodule path 'C:/Users/user/AppData/Local/Jenkins/.jenkins/workspace/project/thirdparty/poco' failed
      Failed to clone 'thirdparty/poco' a second time, aborting
      
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.lambda$execute$0(CliGitAPIImpl.java:1505)
      	at com.google.common.util.concurrent..orgstedListenableFutureTask$.orgstedFutureInte.orgptibleTask.orgnInte.orgptibly(.orgstedListenableFutureTask.java:131)
      	at com.google.common.util.concurrent.Inte.orgptibleTask.orgn(Inte.orgptibleTask.java:74)
      	at com.google.common.util.concurrent..orgstedListenableFutureTask.orgn(.orgstedListenableFutureTask.java:82)
      	at java.base/java.util.concurrent.Executors.orgnnableAdapter.call(Executors.java:515)
      	at java.base/java.util.concurrent.FutureTask.orgn(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:87)
      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:1508)
      	at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:160)
      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 hudson.scm.SCM.checkout(SCM.java:540)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1217)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:647)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.orgn(AbstractBuild.java:519)
      	at hudson.model.orgn.execute.orgn.java:1897)
      	at hudson.model.FreeStyleBuild.orgn(FreeStyleBuild.java:44)
      	at hudson.model.ResourceController.execute(ResourceController.java:101)
      	at hudson.model.Executor.orgn(Executor.java:442)
      Finished: FAILURE
      

          [JENKINS-69011] Fail to submodule update --init --recursive with bitbucket

          null null created issue -
          null null made changes -
          Description Original: Jenkins fails to submodule update --init --recursive with Bitbucket

          For example, we have submodule:
          {code:java}
          [submodule "thirdparty/poco"]
              path = thirdparty/poco
              url = https://bitbucket.web.domain.ru/scm/~user/poco.git {code}

          Try to clone repo:
          {noformat}
          Running as SYSTEM Building in workspace C:\Users\user\AppData\Local\Jenkins\.jenkins\workspace\project The recommended git tool is: NONE using credential user  > git.exe rev-parse --resolve-git-dir C:\Users\user\AppData\Local\Jenkins\.jenkins\workspace\project\.git # timeout=10 Fetching changes from the remote Git repository  > git.exe config remote.origin.url https://bitbucket.web.domain.org/scm/department/project.git # timeout=10 Fetching upstream changes from https://bitbucket.web.domain.org/scm/department/project.git  > git.exe --version # timeout=10  > git --version # 'git version 2.36.1.windows.1' using GIT_SSH to set credentials   > git.exe fetch --tags --force --progress -- https://bitbucket.web.domain.org/scm/department/project.git +refs/heads/*:refs/remotes/origin/* # timeout=10  > git.exe rev-parse "refs/remotes/origin/ci_intergration^{commit}" # timeout=10 Checking out Revision da3aaa54e86c1b6a3006dab0d404d4e2598886c3 (refs/remotes/origin/ci_intergration)  > git.exe config core.sparsecheckout # timeout=10  > git.exe checkout -f da3aaa54e86c1b6a3006dab0d404d4e2598886c3 # timeout=10 Commit message: "* update links"  > git.exe rev-list --no-walk da3aaa54e86c1b6a3006dab0d404d4e2598886c3 # timeout=10  > git.exe remote # timeout=10  > git.exe submodule init # timeout=10  > git.exe submodule sync # timeout=10  > git.exe config --get remote.origin.url # timeout=10  > git.exe submodule init # timeout=10  > git.exe config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10  > git.exe config --get submodule.thirdparty/poco.url # timeout=10  > git.exe remote # timeout=10  > git.exe config --get remote.origin.url # timeout=10  > git.exe config -f .gitmodules --get submodule.thirdparty/poco.path # timeout=10 ... using GIT_SSH to set credentials   > git.exe submodule update --init --recursive thirdparty/poco # timeout=10 hudson.plugins.git.GitException: Command "git.exe submodule update --init --recursive thirdparty/poco" returned status code 1: stdout:  stderr: Cloning into 'C:/Users/user/AppData/Local/Jenkins/.jenkins/workspace/project/thirdparty/poco'... fatal: remote error: Repository not found The requested repository does not exist, or you do not have permission to access it. fatal: clone of 'https://bitbucket.web.domain.org/scm/~user/poco.git' into submodule path 'C:/Users/user/AppData/Local/Jenkins/.jenkins/workspace/project/thirdparty/poco' failed Failed to clone 'thirdparty/poco'. Retry scheduled Cloning into 'C:/Users/user/AppData/Local/Jenkins/.jenkins/workspace/project/thirdparty/poco'... fatal: remote error: Repository not found The requested repository does not exist, or you do not have permission to access it. fatal: clone of 'https://bitbucket.web.domain.org/scm/~user/poco.git' into submodule path 'C:/Users/user/AppData/Local/Jenkins/.jenkins/workspace/project/thirdparty/poco' failed Failed to clone 'thirdparty/poco' a second time, aborting    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)     at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)     at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)     at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.lambda$execute$0(CliGitAPIImpl.java:1505)     at com.google.common.util.concurrent..orgstedListenableFutureTask$.orgstedFutureInte.orgptibleTask.orgnInte.orgptibly(.orgstedListenableFutureTask.java:131)     at com.google.common.util.concurrent.Inte.orgptibleTask.orgn(Inte.orgptibleTask.java:74)     at com.google.common.util.concurrent..orgstedListenableFutureTask.orgn(.orgstedListenableFutureTask.java:82)     at java.base/java.util.concurrent.Executors.orgnnableAdapter.call(Executors.java:515)     at java.base/java.util.concurrent.FutureTask.orgn(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:87) 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:1508)     at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:160) 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 hudson.scm.SCM.checkout(SCM.java:540)     at hudson.model.AbstractProject.checkout(AbstractProject.java:1217)     at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:647)     at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)     at hudson.model.AbstractBuild$AbstractBuildExecution.orgn(AbstractBuild.java:519)     at hudson.model.orgn.execute.orgn.java:1897)     at hudson.model.FreeStyleBuild.orgn(FreeStyleBuild.java:44)     at hudson.model.ResourceController.execute(ResourceController.java:101)     at hudson.model.Executor.orgn(Executor.java:442) Finished: FAILURE
          {noformat}
          New: Jenkins fails to submodule update --init --recursive with Bitbucket

          For example, we have submodule:
          {code:java}
          [submodule "thirdparty/poco"]
              path = thirdparty/poco
              url = https://bitbucket.web.domain.ru/scm/~user/poco.git {code}

          Try to clone repo:
          {noformat}
          Running as SYSTEM
          Building in workspace C:\Users\user\AppData\Local\Jenkins\.jenkins\workspace\project
          The recommended git tool is: NONE
          using credential user
           > git.exe rev-parse --resolve-git-dir C:\Users\user\AppData\Local\Jenkins\.jenkins\workspace\project\.git # timeout=10
          Fetching changes from the remote Git repository
           > git.exe config remote.origin.url https://bitbucket.web.domain.org/scm/department/project.git # timeout=10
          Fetching upstream changes from https://bitbucket.web.domain.org/scm/department/project.git
           > git.exe --version # timeout=10
           > git --version # 'git version 2.36.1.windows.1'
          using GIT_SSH to set credentials
           > git.exe fetch --tags --force --progress -- https://bitbucket.web.domain.org/scm/department/project.git +refs/heads/*:refs/remotes/origin/* # timeout=10
           > git.exe rev-parse "refs/remotes/origin/ci_intergration^{commit}" # timeout=10
          Checking out Revision da3aaa54e86c1b6a3006dab0d404d4e2598886c3 (refs/remotes/origin/ci_intergration)
           > git.exe config core.sparsecheckout # timeout=10
           > git.exe checkout -f da3aaa54e86c1b6a3006dab0d404d4e2598886c3 # timeout=10
          Commit message: "* update links"
           > git.exe rev-list --no-walk da3aaa54e86c1b6a3006dab0d404d4e2598886c3 # timeout=10
           > git.exe remote # timeout=10
           > git.exe submodule init # timeout=10
           > git.exe submodule sync # timeout=10
           > git.exe config --get remote.origin.url # timeout=10
           > git.exe submodule init # timeout=10
           > git.exe config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10
           > git.exe config --get submodule.thirdparty/poco.url # timeout=10
           > git.exe remote # timeout=10
           > git.exe config --get remote.origin.url # timeout=10
           > git.exe config -f .gitmodules --get submodule.thirdparty/poco.path # timeout=10
          ...
          using GIT_SSH to set credentials
           > git.exe submodule update --init --recursive thirdparty/poco # timeout=10
          hudson.plugins.git.GitException: Command "git.exe submodule update --init --recursive thirdparty/poco" returned status code 1:
          stdout:
          stderr: Cloning into 'C:/Users/user/AppData/Local/Jenkins/.jenkins/workspace/project/thirdparty/poco'...
          fatal: remote error: Repository not found
          The requested repository does not exist, or you do not have permission to
          access it.
          fatal: clone of 'https://bitbucket.web.domain.org/scm/~user/poco.git' into submodule path 'C:/Users/user/AppData/Local/Jenkins/.jenkins/workspace/project/thirdparty/poco' failed
          Failed to clone 'thirdparty/poco'. Retry scheduled
          Cloning into 'C:/Users/user/AppData/Local/Jenkins/.jenkins/workspace/project/thirdparty/poco'...
          fatal: remote error: Repository not found
          The requested repository does not exist, or you do not have permission to
          access it.
          fatal: clone of 'https://bitbucket.web.domain.org/scm/~user/poco.git' into submodule path 'C:/Users/user/AppData/Local/Jenkins/.jenkins/workspace/project/thirdparty/poco' failed
          Failed to clone 'thirdparty/poco' a second time, aborting

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.lambda$execute$0(CliGitAPIImpl.java:1505)
          at com.google.common.util.concurrent..orgstedListenableFutureTask$.orgstedFutureInte.orgptibleTask.orgnInte.orgptibly(.orgstedListenableFutureTask.java:131)
          at com.google.common.util.concurrent.Inte.orgptibleTask.orgn(Inte.orgptibleTask.java:74)
          at com.google.common.util.concurrent..orgstedListenableFutureTask.orgn(.orgstedListenableFutureTask.java:82)
          at java.base/java.util.concurrent.Executors.orgnnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.orgn(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:87)
          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:1508)
          at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:160)
          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 hudson.scm.SCM.checkout(SCM.java:540)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1217)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:647)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
          at hudson.model.AbstractBuild$AbstractBuildExecution.orgn(AbstractBuild.java:519)
          at hudson.model.orgn.execute.orgn.java:1897)
          at hudson.model.FreeStyleBuild.orgn(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:101)
          at hudson.model.Executor.orgn(Executor.java:442)
          Finished: FAILURE
          {noformat}
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          null null made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]

            Unassigned Unassigned
            atom63 null null
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: