hudson.plugins.git.GitException: Could not clone

Jenkins JIRA | Daniel Strassenburg | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    We created a simple matrix job which should clone our project from a Git repo to run maven afterwards. Hudson wants to checkout the project from Git to not existing directory {{/home/<hudsonuser>}}, but the real home dir exists in another directory (e.g. {{/export/home/<hudsonuser>}}. The {{$HOME}} variable is set accordingly. Other jobs (non-matrix) are working fine with Git. It seems that the destination directory is hard coded? Excerpt from Hudson log: {noformat} Cloning repository origin $ <path-to-git>/git clone -o origin git://<url>/<project>.git /home/<hudsonuser>/<hudson-workspace>/<job-name> ERROR: Error cloning remote repo 'origin' : Could not clone git://<url>/<project>.git ERROR: Cause: Error performing <path-to-git>/git clone -o origin git://<url>/<project>.git /home/<hudsonuser>/<hudson-workspace>/<job-name> Trying next repository ERROR: Could not clone from a repository FATAL: Could not clone hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:493) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:446) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2015) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) at java.util.concurrent.FutureTask.run(FutureTask.java:149) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:735) {noformat}

    Jenkins JIRA | 7 years ago | Daniel Strassenburg
    hudson.plugins.git.GitException: Could not clone
  2. 0

    We created a simple matrix job which should clone our project from a Git repo to run maven afterwards. Hudson wants to checkout the project from Git to not existing directory {{/home/<hudsonuser>}}, but the real home dir exists in another directory (e.g. {{/export/home/<hudsonuser>}}. The {{$HOME}} variable is set accordingly. Other jobs (non-matrix) are working fine with Git. It seems that the destination directory is hard coded? Excerpt from Hudson log: {noformat} Cloning repository origin $ <path-to-git>/git clone -o origin git://<url>/<project>.git /home/<hudsonuser>/<hudson-workspace>/<job-name> ERROR: Error cloning remote repo 'origin' : Could not clone git://<url>/<project>.git ERROR: Cause: Error performing <path-to-git>/git clone -o origin git://<url>/<project>.git /home/<hudsonuser>/<hudson-workspace>/<job-name> Trying next repository ERROR: Could not clone from a repository FATAL: Could not clone hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:493) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:446) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2015) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) at java.util.concurrent.FutureTask.run(FutureTask.java:149) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:735) {noformat}

    Jenkins JIRA | 7 years ago | Daniel Strassenburg
    hudson.plugins.git.GitException: Could not clone
  3. 0

    Build failed in Hudson: Grid Core - Windows #298

    Google Groups | 7 years ago | hudson
    hudson.plugins.git.GitException: Could not clone
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ROSE Compiler Framework/Jenkins Failures - Wikibooks, open books for an open world

    wikibooks.org | 7 months ago
    hudson.plugins.git.GitException: Could not clone rose-dev@rosecompiler.llnl.gov:rose/edg4x/rose-sh.git

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Could not clone

      at hudson.plugins.git.GitSCM$2.invoke()
    2. Hudson GIT plugin
      GitSCM$2.invoke
      1. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:493)
      2. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:446)
      2 frames
    3. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2015)
      1 frame
    4. Hudson :: Remoting Layer
      Request$2.run
      1. hudson.remoting.UserRequest.perform(UserRequest.java:114)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:270)
      3 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:149)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      6. java.lang.Thread.run(Thread.java:735)
      6 frames