Cleaning up component versions

You can configure the server to reduce the number of component versions by archiving old versions. You can specify global cleanup settings, cleanup settings for individual components, and cleanup settings for specific environments.

About this task

The server archives a full or incremental component version if it meets these criteria:
Note: If a component version meets these criteria, it is archived, even if the version was deployed to an environment in the past.
Note: Beginning with version 6.1, the server stores full copies of each component artifact, even if the files are duplicates.

Procedure

  1. Specify the global cleanup settings:
    1. Click Settings > System Settings.
    2. Under Artifact Cleanup, in the Days to Keep Versions field, specify the minimum age in days to save a component version. For example, to keep all component versions that are 5 days old or newer, specify 5. If you specify -1, all versions are saved, regardless of the setting in the Number of Versions to Keep field.
    3. In the Number of Versions to Keep field, specify the minimum number of versions to keep. For example, to save the five most recent component versions, specify 5. If you specify -1, all versions are saved, regardless of the settings in the Days to Keep Versions field.

      When the server runs the cleanup, it deletes or archives all component versions that are older than the minimum age. However, the server retains at least the number of versions in the Number of Versions to Keep field.

    4. In the Archive Path field, specify the path of the location on the server to write compressed versions of each version that is archived. If you do not specify a path, then the server does not store the component versions that it removes.
    5. To preview the component versions to be archived the next time that an archive file is created, on the System Settings tab, click the Preview Version Cleanup link, and select a component.
    6. Click Save.
  2. Optional: Specify cleanup settings for individual components. These settings override the global settings.
    1. Click Components, click a component, go to the Configuration tab for the component, and then click Basic Settings.
    2. Clear the Inherit Cleanup Settings check box.
    3. In the Days to Keep Versions field, specify the minimum age in days to save a component version.
    4. In the Number of Versions to Keep field, specify the minimum number of versions to keep.
    5. Click Save.
  3. Optional: Specify cleanup settings for individual environments. These settings override the global settings and the component cleanup settings.
    1. Click Applications, click an application, click an environment, go to the Configuration tab, and click Basic Settings.
    2. Clear the Inherit Cleanup Settings check box.
    3. In the Days to Keep Versions field, specify the minimum age in days to save a component version.
    4. In the Number of Versions to Keep field, specify the minimum number of versions to keep.
    5. Click Save.

Feedback