如何在TeamCity中清除旧的失败构建? [英] How to cleanup old Failed Builds in TeamCity?

查看:114
本文介绍了如何在TeamCity中清除旧的失败构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在TeamCity中确实有数百个失败的构建版本(由于失败设置的重试,这个数字特别高),现在浏览历史很痛苦。

We do have hundreds of failed builds in TeamCity (number is especially high because of old retry on fail settings) and now it's a pain to browse history.

I想要只清理失败的旧版本,在TeamCity中有做吗?正常的清理政策只允许在最后一次成功构建清理之前的X天。

I want to clean up only old failed builds, is there anyway to do that in TeamCity? Normal clean-up policy only allows X days before the last successful build sort of clean ups.

推荐答案

我试图找到一个删除构建历史记录,但找不到。那并不能证明它不存在,但是确实如此,对于开发人员来说,这是一个滥用它的机会,因为某些PM使用历史记录作为衡量标准,可能会说明一些代码质量。如果我们可以删除所有失败的构建,那么它将使该统计数据适用于游戏。

I tried to find a "delete build history record" but I couldn't find one. That doesn't prove it isn't there, but it it was, it would be an opportunity for devs to abuse it as some PM's use the history as a metric that may say something about code quality. If we could delete all the failed builds, it would make this statistic game-able.

当然,策略页面中会有一些调整,但不是您需要的排序提到(您不能删除仅失败的版本)
admin / cleanupPolicies.html

Of course there is the policy page which has some tuning, but not the sort you mentioned (you can't remove just failed builds) admin/cleanupPolicies.html

您可能想固定自己喜欢的版本(这样可以保护它们免受污染向上),然后更改政策以清理1天之内的所有物品,然后将政策更改回更合理的地方。

You might want to pin your favorite builds (which should protect them from clean up) and then change the policy to clean up everything 1 day old, then change the policy back to something more reasonable.

这篇关于如何在TeamCity中清除旧的失败构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆