从Hudson删除工件,但保留日志以链接到构建 [英] Remove artifacts from Hudson, but retain logs in order to link to builds

查看:62
本文介绍了从Hudson删除工件,但保留日志以链接到构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们对Hudson设置有以下要求:

We have the following requirements for our Hudson setup:

  1. 我们想直接链接到所有已执行的构建
  2. 应限制工件的有效数量

可以限制每个作业在哈德森的最大构建数(请参阅此问题).该选项有效地去除了旧的工件.问题在于,这还会删除与该构建相关的所有其他信息.

It is possible to limit the number of maximum builds in Hudson per job (see this question). This option effectively removes old artifacts. The problem is that this also removes all other information related to the build.

即使删除了工件,有没有办法通过http://${hudson}/job/${jobname}/${buildnumber}保留直接链接到已完成的构建的方法?有时,提交修复程序并链接到相应的构建错误可能会很好.

Is there a way to retain linking directly to completed builds via http://${hudson}/job/${jobname}/${buildnumber}, even if artifacts were removed? Sometimes it may be good to commit fixes and link to the corresponding build error.

推荐答案

在配置归档工件"时,高级"按钮下方有一个复选框,该复选框允许您删除除最新工件以外的所有工件.构建历史记录将保留,但工件将被删除.

There's a checkbox under the 'advanced' button when configuring 'archive the artifacts' that allows you to delete all but the most recent artifacts. The build history is retained, but the artifacts are deleted.

要保留最近N个构建中的工件存在一个未解决的问题-请参见

There is an open issue for keeping the artifacts from the last N builds - see issue 834

这篇关于从Hudson删除工件,但保留日志以链接到构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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