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

git HTTP request failed in Jenkins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • git-client-plugin
    • None

      Hi Guys

      We are using jenkins 1.525 (RHEL 6, 64b) with git plugin 1.4.0

      Git repos server version: git version 1.7.11.3

      Git client in jenkins server: git version 1.7.1

      In the jenkins project job, in the git configuration, I got this error:

      ==============================================================

      Failed to connect to repository : Command "git ls-remote -h https://git.abc.com/git/repos/abc.git HEAD" returned status code 128:
      stdout:
      stderr: error: Couldn't resolve host 'git.abc.com' while accessing https://git.abc.com/git/repos/abc.git/info/refs

      fatal: HTTP request failed
      ===============================================================

      • The git clone, git update in the project job is working fine, I can checkout the update when the job run.
      • I tried "git ls-remote -h https://git.abc.com/git/repos/abc.git HEAD" in local jenkins server, which is fine, no issue.
      • git clone, git pull, push from local jenkins server is fine.

      All work fine, but just this error is very annoying.

      Anyone has idea ?

      Thanks for your help.

      Cheers

            ndeloof Nicolas De Loof
            kmsg Mick Gong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: