Automatically Purge the Task Archive According to a User-Defined Policy
Deploy records and archives information about all tasks that it executes. This information is available through the statistics, graphs, and task archives on the Reports screen.
By default, all historical data is kept in the system indefinitely. You can define a custom task retention policy if you do not want to retain an unlimited task history and reclaim the disk space it requires.
The record of all tasks that started before the specified retention date will be removed from the archive and will no longer be visible in Deploy reports.
Automatically purge the task archive
To automatically purge tasks using a policy:
- From the side bar, click Configuration
- Click , then select New > Policy >
policy.TaskRetentionPolicy
. - In the Name field, enter a unique policy name.
- In the Days to retain tasks field, enter the number of days that Deploy should retain tasks. If 0 days is specified, all active tasks are subject to archiving.
By default, automatic policy execution is enabled and will run according to the crontab schedule defined in the Schedule section. You can optionally change the crontab schedule or disable policy execution.
By default, purged tasks are exported to a ZIP file in XL_DEPLOY_SERVER_HOME/exports
. You can optionally specify a different directory in the Archive path property on the Export tab.
The property accepts ${ }
placeholders, where valid keys are CI properties with addition of execDate
and execTime
.