The artifact CleanUp publisher allows for automatic removal of the buildlogs according to the choosen setting.
It relies on the build log folder, so the XML publisher must be specified before this publisher can run.
For technical reasons this publisher MUST reside in the publisher section, it will not work in the tasks section.
Be sure to specify the XMLLogger before this one.
Example
<artifactcleanup cleanUpMethod="KeepLastXBuilds" cleanUpValue="50" />
This will keep the last 50 builds in the buildlog folder.
| Node |
Description |
Type |
Required |
Default |
| cleanUpMethod |
Defines the procedure to use for cleaning up the artifact folder |
complex |
true |
N/A |
| cleanUpValue |
Defines the value for the cleanup procedure |
int |
true |
N/A |
|
 |
Supported cleaning up methods :
- KeepLastXBuilds : keeps the last specified amount of builds
- DeleteBuildsOlderThanXDays : Deletes the builds older than the specifed amount of days
- KeepMaximumXHistoryDataEntries : Clears the History Data file (for the ModificationHistory), keeping maximum the specified amount of builds.
|