运行jenkins报错 The system cannot find the file specified

[workspace] $ sh -xe C:\Windows\TEMP\hudson4419897732634199534.sh
The system cannot find the file specified

https://stackoverflow.com/questions/15135771/hudson-on-windows-error-java-io-ioexception-cannot-run-program-sh


This happens if you have specified your Windows command as "Execute shell" rather than "Execute Windows batch command".

是因为用错了一个command的窗口, 用Execute Windows batch command 就可以了,他是指用windows 的command窗口命令形式,而上面我错误的那次用了Execute shell的形式, 这是有问题的,是linux下的shell,所以系统文件格式不同导致的。

你可能感兴趣的:(Jenkins,运维,shell,操作系统)