Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Cleanup policies can be defined at all three levels of Continua CI, which are the global, project and configuration level. By default, the global cleanup policy is applied to every configuration in Continua CI, however these can be overridden on either the project or configuration. If a project defines a cleanup policy then every configuration that belongs in that project will automatically inherit the project's cleanup policy rather than the global policy. 

 

By default, the global policy will be applied to all builds, however you can override this at either the project or configuration level. Each cleanup policy runs once per day. You can choose when it runs and control which builds and by-products are cleaned up.

Note that build cleanup is permanent: a cleaned up build cannot be recovered.

How to Define Cleanup Policies

Cleanup policies are defined in following areas of Continua.

Global Cleanup Policy

The global cleanup policy can be modified found in the administration section, under the Continuous Integration (CI) Settings.

Project Cleanup Policy

A project's cleanup policy can be defined in it's project wizard. The project wizard can be found by selecting a project and clicking 'Edit Project' in the Tasks menu. The cleanup policy is the last page in the project wizard.

Configuration Cleanup Policy

A configuration's cleanup policy is defined in it's configuration wizard. It can be found by editing the configuration and navigating to the cleanup section of the wizard.

Cleanup Policy Options

Image Removed

There are several options you can change to determine which builds will be cleaned up:

Image Added

Run Cleanup Task Daily at

Specify when the cleanup should execute each day.

Build Age

All builds that are older than Build Age: Any build that is older then the build age will be removed when the cleanup runs. 

Minimum Builds

This specifies the minimum :  Regardless of build age, this number of builds will always that should be kept at all times, regardless of build age.

Maximum Builds

...

This specifies the maximum number of builds that should be kept at any one time, regardless of build age. If the number of existing builds is greater than this number then the oldest builds will be deleted.

What to Cleanup

All: This will delete all artifacts, logs and database entries.

Artifacts: This will delete all artifacts in the build's workspace from physical memory. Once artifacts have been deleted, they are no longer accessible through the build's artifacts page.

Logs: This will delete all build logs in the build's workspace from physical memory. Once logs have been deleted, they are no longer accessible through the build's log page.

Database:

 

You can also choose which by-products are cleaned up:

Artifacts: Artifacts from the build will be deleted from disk. 

Logs: The build's log will be deleted from the build's workspace and will no longer be accessible on the build's Log page.

Database:  The build is deleted from the Continua database - it no longer appears on the configuration's History page, nor does it which removes all references to it from Continua. Deleted builds will no longer appear on the history or activity pages, nor will they contribute to the configuration's statsstatistics and metrics.

 

Saving the Policy

Save:   Saves Saves the cleanup policy . It will be executed according to scheduleand the cleanup will run at the time specified.

Save and Run Now: Saves the cleanup policy and runs the cleanup immediately.