Remove artifacts from Hudson, but retain logs in order to link to builds

蓝咒 提交于 2019-12-07 12:08:44

问题


We have the following requirements for our Hudson setup:

  1. We would like to directly link to all builds that have been executed
  2. The effective number of artifacts should be limited

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.

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.


回答1:


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.

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



来源:https://stackoverflow.com/questions/1719796/remove-artifacts-from-hudson-but-retain-logs-in-order-to-link-to-builds

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!