How can I delete Hudson's built artifacts?

拟墨画扇 提交于 2019-12-23 14:40:09

问题


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 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.

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.

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.


回答1:


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



来源:https://stackoverflow.com/questions/805909/how-can-i-delete-hudsons-built-artifacts

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