Do you set retention policy?

Updated by Brady Stroud [SSW] 1 year ago. See history

123

Octopus Deploy will by default keep all packages (NuGet, ZIP, …) as well as files deployed on all Tentacles. Because of that your hard drive will fill up very fast as you keep pushing in more packages and creating more releases, especially if you are using Continuous Integration and pushing out new packages with every commit to a repository. That's why you need to set up a retention policy. Octopus Deploy supports two options:

  • Retention policy for packages
  • Retention policy for deployments (via Lifecycle phases)

You should set up both.

Package Policy

❌ Figure: Bad Example - Retention policy is set to Keep forever

✅ Figure: Good Example - Retention policy is set to a number of days

Lifecycle Policy

❌ Figure: Bad Example - Lifecycle's retention policy is set to Keep all

✅ Figure: Good Example - Lifecycle's retention policy is set to 3 Releases

acknowledgements
related rules