Create retention policies

Use retention policies to control how long PulseUno keeps vault packages and chain runs before removing them. As an administrator, you can create custom retention policies and apply them to chains and vaults.

Retention guidelines

Retention policies apply to chain runs and vault packages.

Retention policy guidelines:

  • By default, chain runs and vault packages are kept for 30 days.

  • After you create a retention policy, you apply it to an individual vault or chain. The retention policy applies to all packages in a vault and all logs in a chain.

    For details, see Set a vault content policy and Set retention, queue, and stop options.

  • Regardless of the retention policy, PulseUno always keeps the latest version of any package in a vault.

  • You can override the retention policy for individual packages and chain runs and choose to keep them forever.

  • Maven vaults: For a Maven snapshot version that can be delivered multiple times, the retention policy applies to snapshot deliveries the same way it applies to package versions. Regardless of the retention policy, PulseUno always keeps the latest delivery of each snapshot.

    Example: If your retention policy is set to retain 3 items, PulseUno keeps 3 versions of each Maven package and 3 deliveries of each Maven snapshot.

Back to top

Add a retention policy

You can add multiple retention policies and set different policies for individual vaults and chains.

To create a retention policy:

  1. In PulseUno, navigate to Administration > Retention Policies.

  2. Click New Retention Policy .

  3. Specify the criteria for the retention policy:

    Field Description
    Title Enter a title for the new retention policy.
    Description (Optional) Provide additional information about the retention policy.
    Items to retain

    Chains: Specify the number of chain runs to retain in the log, for example, 100.

    Vaults: Specify the number of versions to keep for each package, for example, 3.

    Max item age Specify how many days chain runs or package versions are retained, for example, 365 (one year).
    Max size Specify the maximum size of the vault or log in MB, for example, 1024 (1 GB). When the vault or log reaches this size, PulseUno removes the oldest items.

    PulseUno deletes content as soon as any of the criteria are reached.

  4. Click Save.

Back to top

See also: