2012-06-12 188 views
1

我有Jenkins和Nant-plugin。我有一份nunit测试工作。在构建项目时出现错误:如何在Jenkins中配置Nant插件

Executing command: cmd.exe /C ""NAnt.exe ./nant.build && exit %%ERRORLEVEL%%"" [GuiTests] $ cmd.exe /C '"NAnt.exe ./nant.build && exit %%ERRORLEVEL%%"' 'NAnt.exe' is not recognized as an internal or external command, operable program or batch file.

是否意味着我应该安装nant并手动设置环境变量?那么为什么Nant-plugin?

回答

2

是的,和ANT插件一样,它需要外部安装。您可以在主Jenkins配置页面上配置自动安装(http://<jenkins-server>/configure,搜索Nant Builder),但根据我的经验,最好不要参与Jenkins自动安装 - 它们相当古怪。

该插件的原因是您的构建的可移植性。使用插件,您无需为Linux(Execute Shell)和Windows(执行Windows批处理命令)构建而指定不同的构建步骤,而是可以使用相同的执行NAnt构建步骤。

+0

此解答是否有用? –

相关问题