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

There's no such executable C:\Program Files\Git\bin\git.exe in PATH: /opt/java/openjdk/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin.

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • git-client-plugin
    • None

      I am trying to link a project from GitHub to Jenkins however I am facing two issues in my Source Code management 
      "Failed to connect to repository : Command "git ls-remote -h – git@github.com:********/MSBuildTest.git HEAD" returned status code 128:
      stdout:
      stderr: Host key verification failed.
      fatal: Could not read from remote repository.

      Please make sure you have the correct access rights
      and the repository exists."

      I went to Tool Configuration but that hasn't helped my case either as I am facing this error There's no such executable C:\Program Files\Git\bin\git.exe in PATH: /opt/java/openjdk/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin.

      I am on Windows 11 and been stuck for over 48 hrs trying to link GitHub to Jenkins for automatic testing.

          [JENKINS-72416] There's no such executable C:\Program Files\Git\bin\git.exe in PATH: /opt/java/openjdk/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin.

          Janny created issue -
          Janny made changes -
          Description Original: I am trying to link a project from GitHub to Jenkins however I am facing two issues in my Source Code management 
          "Failed to connect to repository : Command "git ls-remote -h -- git@github.com:nyendwa/MSBuildTest.git HEAD" returned status code 128:
          stdout:
          stderr: Host key verification failed.
          fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
          and the repository exists."

          I went to Tool Configuration but that hasn't helped my case either as I am facing this error There's no such executable C:\Program Files\Git\bin\git.exe in PATH: /opt/java/openjdk/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin.

          I am on Windows 11 and been stuck for over 48 hrs trying to link GitHub to Jenkins for automatic testing.
          New: I am trying to link a project from GitHub to Jenkins however I am facing two issues in my Source Code management 
          "Failed to connect to repository : Command "git ls-remote -h – git@github.com:********/MSBuildTest.git HEAD" returned status code 128:
          stdout:
          stderr: Host key verification failed.
          fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
          and the repository exists."

          I went to Tool Configuration but that hasn't helped my case either as I am facing this error There's no such executable C:\Program Files\Git\bin\git.exe in PATH: /opt/java/openjdk/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin.

          I am on Windows 11 and been stuck for over 48 hrs trying to link GitHub to Jenkins for automatic testing.
          Janny made changes -
          Attachment New: Jenkins Error.png [ 61655 ]
          Janny made changes -
          Attachment New: Git Configuration.png [ 61656 ]

          Mark Waite added a comment -

          nyendwa we use the Jenkins issue tracker for bug reports and enhancement requests. This looks like a request for help with a configuration issue. Fewer people read the Jenkins issue tracker than read the Jenkins community forum, the Jenkins user mailing list, and the Jenkins chat channels. Please ask your question in one of those locations.

          You didn't describe your configuration precisely enough for me to be sure, but it is possible that you're encountering something similar to JENKINS-54053 . If you have a Windows controller that is trying to use a non-Windows agent, then it is trying to use the Windows path that you defined for command line git to find the git on a non-Windows computer. The solution / workaround for that is to use "git" as the path to the git command instead of using "C:\Program Files\Git\bin\git.exe".

          Mark Waite added a comment - nyendwa we use the Jenkins issue tracker for bug reports and enhancement requests. This looks like a request for help with a configuration issue. Fewer people read the Jenkins issue tracker than read the Jenkins community forum , the Jenkins user mailing list , and the Jenkins chat channels . Please ask your question in one of those locations. You didn't describe your configuration precisely enough for me to be sure, but it is possible that you're encountering something similar to JENKINS-54053 . If you have a Windows controller that is trying to use a non-Windows agent, then it is trying to use the Windows path that you defined for command line git to find the git on a non-Windows computer. The solution / workaround for that is to use "git" as the path to the git command instead of using "C:\Program Files\Git\bin\git.exe".
          Mark Waite made changes -
          Link New: This issue duplicates JENKINS-54053 [ JENKINS-54053 ]
          Mark Waite made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            nyendwa Janny
            nyendwa Janny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: