【错误】:使用jmeter脚本+Jenkins进行接口持续集成,结果报错Caused: java.io.IOException: Cannot run program "sh" (in directory "D:\Jenkins\Jenkins_home
【原因】:在构建任务的时候使用了execute shell来运行脚本
【解决办法】:Windows下面使用需要使用execute windows batch commend,Linux下使用execute shell,如下图:
【结果】: