Jenkins not working anymore: SSH executable not found

前端 未结 2 1087
无人共我
无人共我 2021-02-15 17:39

I don\'t know since when, but one day my Jenkins is not building fine my projects anymore.

  • Jenkins 2.19.4
  • Windows 10
  • Git client plugin 1.19.0
相关标签:
2条回答
  • 2021-02-15 17:56

    I fixed the solution to this problem by following this method.

    Manage Jenkins => Global Tool Configuration => Git -> Git installations.

    Name: Default

    Path to Git executable: C:\Program Files\Git\bin\git.exe

    The problem was solved when I tried again by saying Save

    0 讨论(0)
  • 2021-02-15 18:08

    Make sure your system path includes:

     <path/to/git>\usr\bin
    

    You will find all the Linux executable (including ssh.exe) there.

    You can install a portable version of Git anywhere you want on your system.


    Update April 2017: I had the same issue with Jenkins 1.614 and Git client 1.19

    The only way I get past that error was by copying ssh.exe from C:\myGit\usr\bin (with C:\MyGit\usr\bin in %PATH%) to

    c:\Program Files\Git\bin
    

    Even though:

    • There is not Git at all in C:\Program Files (I installed/unzipped it in C:\myGit), meaning after the copy, C:\Program Files\Bin only include bin\ssh.exe: that's it.
    • C:\Program Files\Bin is not in the PATH.

    But the Git Client (at least in that old version) is hard-wired to search in that path.

    Once I will switch to Jenkins 2.54+, I will test a more recent Git Client plugin.

    0 讨论(0)
提交回复
热议问题