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

fatal: I don't handle protocol 'git clone http'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • git-plugin
    • None
    • Local

      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

            ndeloof Nicolas De Loof
            pras_sawant Prashant Sawant
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: