hudson.plugins.git.GitException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi I am getting below error when cloning a centralized repository my tunneling script tunnel to central repository and then try to clone Git plugin - 2.4.0 Started by user anonymous Building in workspace /var/lib/jenkins/jobs/Careidconfig/workspace Running Prebuild steps [workspace] $ /bin/sh -xe /tmp/hudson1382292363219401647.sh + sh /var/lib/jenkins/tunn.sh Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information Success build forhudson.tasks.Shell@7a09c482 > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git clone http://localhost:1085/git/Development.git # timeout=10 Fetching upstream changes from git clone http://localhost:1085/git/Development.git > git --version # timeout=10 > git fetch --tags --progress git clone http://localhost:1085/git/Development.git +refs/heads/*:refs/remotes/origin/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from git clone http://localhost:1085/git/CareID_Development.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:763) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043) at hudson.scm.SCM.checkout(SCM.java:484) at hudson.model.AbstractProject.checkout(AbstractProject.java:1274) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git clone http://localhost:1085/git/Development.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: fatal: I don't handle protocol 'git clone http' at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:761) ... 11 more ERROR: null Skipping sonar analysis due to bad build status FAILURE Finished: FAILURE
    via by Prashant Sawant,
  • Hi I am getting below error when cloning a centralized repository my tunneling script tunnel to central repository and then try to clone Git plugin - 2.4.0 Started by user anonymous Building in workspace /var/lib/jenkins/jobs/Careidconfig/workspace Running Prebuild steps [workspace] $ /bin/sh -xe /tmp/hudson1382292363219401647.sh + sh /var/lib/jenkins/tunn.sh Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information Success build forhudson.tasks.Shell@7a09c482 > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git clone http://localhost:1085/git/Development.git # timeout=10 Fetching upstream changes from git clone http://localhost:1085/git/Development.git > git --version # timeout=10 > git fetch --tags --progress git clone http://localhost:1085/git/Development.git +refs/heads/*:refs/remotes/origin/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from git clone http://localhost:1085/git/CareID_Development.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:763) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043) at hudson.scm.SCM.checkout(SCM.java:484) at hudson.model.AbstractProject.checkout(AbstractProject.java:1274) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git clone http://localhost:1085/git/Development.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: fatal: I don't handle protocol 'git clone http' at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:761) ... 11 more ERROR: null Skipping sonar analysis due to bad build status FAILURE Finished: FAILURE
    via by Prashant Sawant,
  • Jenkins and Git configuration issue
    via Stack Overflow by senchaDev
    ,
  • Jenkins returned status code 128
    via Stack Overflow by Dakado
    ,
  • Jenkins can't fetch my git repo
    via Stack Overflow by angezanetti
    ,
  • jenkins time out error
    via Stack Overflow by Bhumika Shukla
    ,
  • Credentials on using Jenkins git plugin
    via Stack Overflow by Guillaume
    ,
    • hudson.plugins.git.GitException: Failed to fetch from git clone http://localhost:1085/git/CareID_Development.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:763) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043) at hudson.scm.SCM.checkout(SCM.java:484) at hudson.model.AbstractProject.checkout(AbstractProject.java:1274) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git clone http://localhost:1085/git/Development.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: fatal: I don't handle protocol 'git clone http' at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:761) ... 11 more

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    2 more bugmates