找出 Teamcity 中破坏次数最多的人
有没有一种简单的方法可以找出用户在 Teamcity 中生成了多少成功/失败的构建?我们需要这个来找出周五谁买啤酒:)
Is there a simple way of finding out how many successful/broken builds a user has generated in Teamcity? We need this to find out who buys beers on friday :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简短的回答似乎是否定的。没有简单的方法可以做到这一点,但这并非不可能。查看 JetBrains 论坛上的这篇文章。矩阵引用是个笑话吗?
http://www.jetbrains.net/devnet/message/5239286#5239286
代理详细信息页面上有一个构建历史选项卡。但你不能用它做太多事情(无论如何在 Teamcity 5.01 版本中都不能)。它甚至不允许对结果列进行排序。根据您每周的构建数量,可以快速手动扫描每个代理的所有失败构建。
编辑:这在 Teamcity 7.0 中通过新的 REST API 绝对是可能的。
它看起来像这样:
http://teamcity:8111/httpAuth/app/rest/buildTypes/id:bt284/builds?status=FAILURE&user=id:1
The short answer seems to be no. There is no simple way to do this but it isn't impossible. Check out this post on the JetBrains forum. Is that Matrix reference a joke?
http://www.jetbrains.net/devnet/message/5239286#5239286
There is a build history tab on the agent details page. But you cannot do much with it (not in version 5.01 of Teamcity anyway). It does not even allow sorting on the results column. Depending on how many builds you have per week, it could be possible to do a quick manual scan of all the failed builds per agent pretty quickly.
EDIT: This is definitely possible in Teamcity 7.0 via the new REST API.
It would look something like this:
http://teamcity:8111/httpAuth/app/rest/buildTypes/id:bt284/builds?status=FAILURE&user=id:1
现在,在 TeamCity 6 中,使用它对自定义图表的支持,这可能是可能的:
http://confluence.jetbrains.net/display/TCD6/Custom+Chart
This may be possible now in TeamCity 6 using it's support for custom charting:
http://confluence.jetbrains.net/display/TCD6/Custom+Chart