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 |
Version |
| 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 |
|
| description |
If filled in, this will be shown in the buildstage as the process name |
string |
false |
n/a |
|
| dynamicValues |
Any dynamic parameters to be used. See Dynamic Parameters |
Dynamic values array - see Dynamic Parameters |
No |
None |
1.5.0 |
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.
- DeleteSubDirsOlderThanXDays : Deletes subfolders of the artifact folder if they are older than the specified amount of days. (Buildlogfolder excluded)
- KeepLastXSubDirs : Keeps the last specified amount of subfolders in the artifacts folder, sorting is done on creation time of the folder (Buildlogfolder excluded)
 | DeleteSubDirsOlderThanXDays and KeepLastXSubDirs are mainly meant for cleaning up published builds (done via the Build Publisher) |