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

Git client plugin does not work with new Git for Windows 2.5.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-client-plugin
    • None
    • Git client plugin 1.18.0, Jenkins 1.609.1, Git for Windows 2.5.0

      The new Git for Windows places the SSH binary in a usr/bin/ subdirectory instead of the bin/ directory used by prior releases of msysgit. This results in an error:

      FATAL: ssh executable not found. The git plugin only supports official git client http://git-scm.com/download/win
      java.lang.RuntimeException: ssh executable not found. The git plugin only supports official git client http://git-scm.com/download/win

      The 'official' link takes you to a download for this new Git for Windows, so it's not helpful.

      A temporary workaround is to create a link to ssh.exe in the $(INSTALLDIR)\bin directory with mklink, e.g.:

      mklink "c:\program files\git\bin\ssh.exe" "c:\program files\git\usr\bin\ssh.exe"

      Another thing I noticed, not related to the jenkins plugin, is that the new Git for Windows prepends the NetBIOS domain name in a Windows AD environment by default. So existing jobs which don't explicitly set the username will fail, because the default username is now DOMAIN+username.

            markewaite Mark Waite
            wsaxon Will Saxon
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: