Hudson - Windows执行Windows批处理命令

时间:2010-07-21 21:45:07

标签: windows windows-xp continuous-integration hudson hudson-plugins

我目前在Windows机器上部署的hudson slave上运行以下命令。

dir
cmd
mvn clean install

我在构建时得到以下回报。

mvn' is not recognized as an internal or external command,
operable program or batch file.

我在节点上设置了正确的路径,指向windows机器上的hudson安装。

我还在windows slave机器上为PathJAVA设置了正确的M2_HOME

我希望能够以正确的方式调用maven,如果将来需要,可能还有另一个*.bat文件。

请,谢谢

1 个答案:

答案 0 :(得分:0)

我仍然没有想到这一点。一个很好的解决方法是使用mvn的完整路径来运行它。这对我有用。