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

Windows git-client plugin assumes ssh.exe is in same directory as git.exe


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-client-plugin
    • None
    • Windows 7

      With the current version of the Git plugin, the code assumes to find SSH executable in a specific directory. By default this installation directory for Git on Windows is "C:\ProgramFiles\Git\bin\ssh.exe" (32-bit) or "C:\ProgramFiles (x86)\Git\bin\ssh.exe" (64-bit). I am referring to this method in the plugin's source code:


      If the Git client was installed into a custom directory, it's impossible to configure known SSH credentials. The plugin will show an error message. I understand that you want to ensure that the Git installation should be the official Git client. However in our environment we require that each Job must be able to specify specific versions of all tools so we must be able to support side by side installs of different versions Git.

      Would it be possible to extend the plugin to either determine the GIT & SSH executables in the PATH or allow the plugin to point to a custom GIT & SSH executable?

            ndeloof Nicolas De Loof
            fstaats Frederick Staats
            0 Vote for this issue
            3 Start watching this issue