You may face this error while working with Hudson and trying to run a new Job:
hudson java.io.IOException: Cannot run program "sh"
This error happens because Hudson is not aware about the shell path. In order to solve this issue, select:
Manage Hudson -> Configure System -> Shell and set the shell path in the Shell executable field as shown in the screenshot below:
This is all about this error.