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

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • git-client-plugin
    • None
    • Git client plugin 1.18.0, Jenkins 1.609.1, Git for Windows 2.5.0

    Description

      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.

      Attachments

        Issue Links

          Activity

            markewaite Mark Waite added a comment -

            I would love to have steps which will allow me to duplicate the scenario. Can you provide the installation location of your git for windows, your environment variables, and anything else that you think might make your case fail when I (and many other users) don't see the same failure?

            markewaite Mark Waite added a comment - I would love to have steps which will allow me to duplicate the scenario. Can you provide the installation location of your git for windows, your environment variables, and anything else that you think might make your case fail when I (and many other users) don't see the same failure?
            neomonkeus Neo Monkeus added a comment -

            Sorry markewaite, haven't had time to follow on this.
            With a clean install of win_2012 server, I manually installed git into a non-default location.
            It added the location of git to the path, set %GIT_HOME% and was seeing the issue.
            I resolved the issue by setting %GIT_SSH%

            neomonkeus Neo Monkeus added a comment - Sorry markewaite , haven't had time to follow on this. With a clean install of win_2012 server, I manually installed git into a non-default location. It added the location of git to the path, set %GIT_HOME% and was seeing the issue. I resolved the issue by setting %GIT_SSH%
            markewaite Mark Waite added a comment -

            I now have a machine which shows the problem.

            markewaite Mark Waite added a comment - I now have a machine which shows the problem.
            markewaite Mark Waite added a comment -

            Believed to be fixed in git client plugin 1.19.3, released 6 Feb 2016

            markewaite Mark Waite added a comment - Believed to be fixed in git client plugin 1.19.3, released 6 Feb 2016

            Code changed in jenkins
            User: Mark Waite
            Path:
            src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java
            src/test/java/org/jenkinsci/plugins/gitclient/CliGitAPIImplTest.java
            src/test/java/org/jenkinsci/plugins/gitclient/GitAPITestCase.java
            http://jenkins-ci.org/commit/git-client-plugin/2a2c6d339dcda8556b267f8a3584a5dd762be387
            Log:
            Add mingw64 dir to ssh location guesser - windows git 2.8.0

            Implement ssh executable test in CliGitAPIImplTest, not applicable
            to JGit.

            May help JENKINS-30045, JENKINS-28943, JENKINS-25297, & JENKINS-21806

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java src/test/java/org/jenkinsci/plugins/gitclient/CliGitAPIImplTest.java src/test/java/org/jenkinsci/plugins/gitclient/GitAPITestCase.java http://jenkins-ci.org/commit/git-client-plugin/2a2c6d339dcda8556b267f8a3584a5dd762be387 Log: Add mingw64 dir to ssh location guesser - windows git 2.8.0 Implement ssh executable test in CliGitAPIImplTest, not applicable to JGit. May help JENKINS-30045 , JENKINS-28943 , JENKINS-25297 , & JENKINS-21806

            People

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

              Dates

                Created:
                Updated:
                Resolved: