为什么我的 NAnt 构建无法在 Hudson 中运行?
我的 NAnt 构建在开发人员计算机上本地运行良好,并在 Hudson 服务器的命令行本地运行良好,但它们不会在我配置的 Hudson 项目中运行。
当我通过 Hudson Web UI 运行构建时,控制台输出类似于以下内容:
由用户匿名[工作区]启动 $ sh-xe C:\WINDOWS\TEMP\hudson8104357939096562606.sh C:\ WINDOWS \ TEMP \ hudson8104357939096562606.sh: fork 失败:无错误 [1] 归档 工件完成:成功
我有另一个项目配置正确,运行良好,所以我知道 NAnt 插件在 Hudson 中正确设置,并且 NAnt 位于系统路径上。
任何人都可以建议此构建无法运行的可能原因吗?
My NAnt builds run fine locally on a developer machine, and locally on the command line of the Hudson server, but they will not run in my configured Hudson project.
The console output when I run a Build via the Hudson web UI is similar to the following :
Started by user anonymous [workspace]
$ sh -xe
C:\WINDOWS\TEMP\hudson8104357939096562606.sh
C:\WINDOWS\TEMP\hudson8104357939096562606.sh:
fork failed: no error [1] Archiving
artifacts Finished: SUCCESS
I have another project configured properly that runs fine so I know the NAnt plugin is setup properly in Hudson, and that NAnt is on the system path.
Can anyone suggest possible causes as to why this build won't run?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有问题的构建可能被配置为执行 Shell 脚本,而不是执行 Windows 批处理文件。
从现有构建步骤(执行 Shell 脚本)复制命令并删除该步骤。然后添加一个新步骤来执行 Windows 批处理文件并粘贴命令。
触发构建并观察结果。
(我问并回答了这个问题,因为我花了很长时间才弄清楚我是如何错误配置这个特定构建的。希望它能节省时间或为其他人解决自动化问题提供想法..)
The problematic build may be configured to Execute a Shell script, rather than Execute a Windows Batch file.
Copy the command from the existing build step (the Execute Shell Script) and remove the step. Then add a new step to Execute a windows Batch File and paste the command.
Trigger the build and observe the results.
(I asked and answered this since it took me quite a while to figure out how I had mis-configured this particular build. Hopefully it'll save time or give ideas to other people trouble-shooting automation..)