|
This page last changed on Nov 30, 2010 by ccnet-doc-gen.
Artifact Cleanup Publisher
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 Xml Log Publisher before this one.
Version
Available from version 1.5
Examples
<artifactcleanup cleanUpMethod="KeepLastXBuilds" cleanUpValue="50" />
Configuration Elements
| Element |
Description |
Type |
Required |
Default |
Version |
| cleanUpMethod |
Defines the procedure to use for cleaning up the artifact folder. |
String - one of:
- KeepLastXBuilds
- DeleteBuildsOlderThanXDays
- KeepMaximumXHistoryDataEntries
- DeleteSubDirsOlderThanXDays
- KeepLastXSubDirs
|
Yes |
n/a |
1.5 |
| cleanUpValue |
Defines the value for the cleanup procedure. |
Int32 |
Yes |
n/a |
1.5 |
| description |
Description used for the visualisation of the buildstage, if left empty the process name will be shown. |
String |
No |
The task/publisher name. |
1.5 |
| dynamicValues |
The dynamic values to use for the task. |
Dynamic Values array |
No |
None |
1.5 |
| environment |
A set of environment variables set for commands that are executed. Each variable should be specified as
<variable name="name" value="value" />
. |
Environment Variable array |
No |
|
|
Notes
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). |
 | Automatically Generated
Documentation generated on Tuesday, 30 Nov 2010 at 10:25:49 AM
Using assembly version 1.6.7805.1 |
|