Cannot run program "sh" error para jenkins

[Ruby_Automation] $ sh -xe C:\Users\ADMINI~1\AppData\Local\Temp\1\hudson131545632482899676.sh
The system cannot find the file specified
FATAL: command execution failed
java.io.IOException: Cannot run program "sh" (in directory "C:\jenkins\workspace\Ruby_Automation"): CreateProcess error=2, The system cannot find the file specified

FIX
Or you can fix it in Jenkins global config: Manage Jenkins -> Configure System -> Shell -> Shell executable = C:\Program Files (x86)\Git\bin\sh.exe



Or you can fix it in Jenkins global config: Manage Jenkins -> Configure System -> Shell -> Shell executable = C:\Program Files\Git\bin\sh.exe

Comentarios