Hudson:跟踪每个构建中更改的文件数量
有谁知道有一种内置方法可以让 Hudson 跟踪每个构建的源代码存储库中有多少文件被更改、添加或删除?我想以与 JUnit 测试结果图显示每个构建的通过和失败测试数量相同的方式绘制结果。
测量图插件 和 绘图插件 看起来他们可能会给我一个起点,但我想知道是否可能已经有更具体的插件或功能可用。
我的 SCM 系统是 CVS,但我想要一个可以与其他 SCM 系统一起使用的通用解决方案。
Does anyone know of a built-in way to have Hudson keep track of how many files are changed, added or deleted in the source code repository in each build ? I'd like to plot the results in the same way that the JUnit test results graphs show the numbers of passing and failing tests for each build.
The Measurement Plots plugin and the Plot Plugin look like they might give me a starting point, but i'm wondering if there might be a more specific plugin or feature already available.
My SCM system is CVS, but I'd like a generic solution that would work with other SCM systems.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不相信有任何现有插件可以直接执行此操作。
如果不需要针对每个构建进行专门跟踪(也就是说,如果您确实对随着时间的推移的变化更感兴趣),那么我建议设置Sonar,它跟踪构建的日常变化并与 Hudson 完美集成,或 FishEye 直接连接到您的 SCM 系统。
但为什么不尝试为 Hudson 编写插件呢?似乎人们可能喜欢将其可视化为每个构建指标。
I don't believe there are any existing plugins that will do this directly.
If it doesn't need to be specifically tracked for each build (that is if you are really more interested in changes over time), then I would suggest setting up Sonar, which tracks daily changes from your builds and integrates fantastically with Hudson, or FishEye which connects directly to your SCM system.
But why not try to write the plugin for Hudson? Seems like the sort of thing that people might like to visualize as a per-build metric.
我认为这个问题对于哈德森来说更普遍,而不是特定的。您可能需要自己编写一些代码。不幸的是,我认为任何解决方案都与 SCM 无关,因为 Hudson 倾向于使用 SCM 工具本身来完成 SCM 位。
我找不到任何现成的解决方案,因此我认为必须完成以下操作:
svn up
、cvs - n
)。不幸的是,我认为没有一种与 SCM 无关的方法可以做到这一点。也许您能做的最好的事情就是找到一个纯 Java CVS/SVN 客户端实现,您可以对其进行修改以跟踪来自 SCM 的文件。
I think this question is more generic than specific to Hudson. You're probably going to have to write a little code by yourself. Unfortunately, I don't think any solution will be SCM agnostic because Hudson tends to use the SCM tools themselves to do the SCM bits.
I couldn't find any off-the-shelf solutions, so here's what I see would have to be done:
svn up
,cvs -n
).wc -l
or some other command to count the number of lines in output. This will give you an estimate to the number of changed/added/deleted files.Unfortunately, I don't think there's an SCM-agnostic way of doing this. Perhaps the best you could do is find a pure-Java CVS/SVN client implementation that you could modify to keep track of files as they come in from the SCM.