使用 hudson 获取远程测试结果
我有一台运行专有语言的服务器,我可以在该服务器上用这种语言运行“单元测试”。我无法在这台机器上安装 Hudson 从机,但希望这些测试结果出现在 hudson 的工作中(至少监控该服务器代码的代码质量)。 我目前正在尝试使用 Web 服务来获取结果并将其存储在 Hudson 工作区中,但我确实担心这不是正确的解决方案。 您可以建议我什么解决方案?
I've a server running a proprietary language on which I'm able to run "unit tests" in this language. I cannot install a Hudson slave on this machine, but would like to have these tests results appearing in a job of hudson (to have at least a monitoring of the code quality for this server code).
I'm currently trying to use web services to get the results and store them in Hudson workspace, but I do fear it is not the right solution.
What solutions can you advice me ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我终于走完了网络服务这条路,尽管这并不容易。
在这条路径中有一些步骤
I finally have gotten through the web services path, although it was not easy.
There are some steps in this path
不确定这些是否可能,但是...
也许一种选择是当构建作业完成时执行第二个构建目标或脚本,将测试结果从远程服务器发送到本地构建服务器,以便它们出现在 hudson 中
或者如果平台允许
使用 sshfs 等
karl等将远程计算机上的目录映射到本地文件系统
Not sure if these are possible but...
Maybe one option is when the build job finished execute a second build target or script to scp the test results from the remote server to the local build server so they appear in hudson
Or if the platform allows
Map a directory on the remote machine to the local file system by using something like sshfs etc
karl
是的,您可以使用脚本任务将 scp 或任何结果(以 junit xml 格式)发送到当前工作区目录。然后有一个“发布 JUnit 测试结果报告”构建后任务 &将其指向复制的文件。
显然,如果它不是与 junit 兼容的格式,则必须对其进行转换。
听起来你走在正确的道路上
Yup, you can scp or whatever the results (in junit xml format) to the current workspace dir using a script task. Then have a "Publish JUnit test result report" post-build task & point it at the copied-in files.
Obviously if it's not in junit-compatible format you'll have to convert it.
Sounds like you're on the right path though