Jenkins not working anymore: SSH executable not found

前端 未结 2 1094
无人共我
无人共我 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 18:08

    Make sure your system path includes:

     \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.

提交回复
热议问题