Reputation: 4913
We have the following requirements for our Hudson setup:
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.
Upvotes: 3
Views: 831
Reputation: 11876
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
Upvotes: 3