如何删除Hudson构建的工件? [英] How can I delete Hudson's built artifacts?

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

问题描述

我们使用Hudson作为我们的持续集成服务器,这是非常好的。我们有2个问题,它们是轻微相关的。

We are using Hudson for our Continuous Integration server and it's great. We have 2 issues with it, which are mildly related.


  1. https://hudson.dev.java.net/issues/show_bug.cgi?id=2736 Hudson中的构建顺序意味着下游依赖关系构建得比他们需要的多得多。希望这个问题很快就会得到解决。

  2. 由于这些东西经常被构建,所以构建历史是巨大的。

  1. https://hudson.dev.java.net/issues/show_bug.cgi?id=2736 The build order in Hudson means that the downstream dependencies get built a lot more than they need to be. Hopefully this issue will be addressed soon.
  2. Since these things are getting built so frequently, the build history is massive. We really don't need 1000 build items in the history for some of the jobs.

我的问题是关于第2点。像一个工作或插件删除旧的工件。保持说,周围的一切的最后20个建设将是好的。现在它似乎无限,这从操作的角度来看是不大的。

My question is about point 2. I would like something like a job or plugin to delete old artifacts. Keeping say the last 20 builds of everything around would be fine. At the moment it seems unbounded, which isn't great from an operations perspective.

更新:根据Norbert的回答,它在作业配置中。在1.300 UI中,有一个Discard Old Builds复选框,可以对其进行配置。

UPDATE: As per Norbert's answer, it is in the job configuration. In the 1.300 UI, there is a "Discard Old Builds" checkbox, which allows this to be configured.

推荐答案

配置在我们的hudson构建服务器。在项目配置中,我可以选择一个数量的构建或一段时间来保持。我不认为我为此

There is such configuration in our hudson build server. In the project config I can chose between an amount of builds or a period of time to keep. I don't think I installed aplugin for this

这篇关于如何删除Hudson构建的工件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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