获取有关构建状态的统计信息

发布于 2024-11-05 20:06:21 字数 764 浏览 0 评论 0原文

我们使用 Hudson 来构建我们的应用程序,并使用 Sonar 来监控我们的应用程序的质量。 CVS 是我们的源代码管理,但我们将在几个月内迁移到 SVN。

每周,我们都希望生成一份质量报告,其中几乎所有指标都是从 Sonar 检索的。 然而,我们还想获得一些其他指标(它们应该代表过去一周的平均值):

  • 不稳定持续时间:不稳定(或损坏)构建所需的平均时间已更正;
  • 损坏的构建百分比损坏的构建/构建总数的比率
  • 不稳定构建的百分比不稳定构建/构建总数的比率
  • % of commented commits:有评论的 CVS / SVN 提交的百分比(我知道这是主观的,因为您只需输入 Update, 或其他任何内容);

请注意,对于第二个和第三个指标,如果我“仅”获取原始值(即构建数量、不稳定构建数量和损坏构建数量),这也很好!

有没有办法(例如使用插件)来获取过去一周的此类指标? 另外,有没有办法将它们直接集成到Sonar中?

请注意,我的构建占用了太多的磁盘空间,因此我们不会在 Hudson 上保留构建的历史记录。

并行问题:是否有一个 Hudson 插件可以保留有关构建历史的统计信息,而不保留 Hudson 历史(包括工件)?

谢谢。

We use Hudson to build our application, and also Sonar to monitor the quality of our application.
CVS is our Source Code Management, but we will migrate in a few months to SVN.

Every week, we want to generate a quality report, where almost every metrics are retrieved from Sonar.
However, there are few others indicators that we would like to get (they should represent an average value for the past week):

  • Instability duration: The average time needed for an unstable (or broken) build to be corrected;
  • % of broken builds: The ratio broken builds / total number of builds;
  • % of unstable builds: The ratio unstable builds / total number of builds;
  • % of commented commits: Percentage of the CVS / SVN commits that have a comment (I know this is subjective, as you can just enter Update, or anything else);

Note that for the second and third indicators, if I "only" get the raw values (i.e. # of builds, # of unstable builds and # of broken builds), this will be good too!

Is there a way (with a plugin for example) to get such metrics for the past week?
Also, is there a way to integrate them in Sonar directly?

Note that my builds are taking really too much space on disk, so we don't keep an history of our builds on Hudson.

Parallel question: Is there an Hudson plugin that keeps the statistics about builds history without keeping the Hudson history (which includes the artifacts)?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半山落雨半山空 2024-11-12 20:06:21

构建稳定性插件应涵盖以下几点:
http://docs.codehaus.org/display/SONAR/Build+Stability+Plugin

scm 活动插件有一些关于您签到的统计信息:
http://docs.codehaus.org/display/SONAR/SCM+Activity+Plugin

The build stability plugin should cover some points:
http://docs.codehaus.org/display/SONAR/Build+Stability+Plugin

the scm activity plugin has some statistics for your checkins:
http://docs.codehaus.org/display/SONAR/SCM+Activity+Plugin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文