Ability to tag specific versions of packages to keep forever?


I want to set a retention policy of keeping a limited number of versions for a specific package on the Octopus Deploy server. Let’s say I want to only keep the latest 10. But at the same time, I want to be able to tag specific versions to keep forever (e.g., QA build or PROD build for rollback purposes). So let’s say I manually specify I want to keep 2 forever, then I would have at most 12 at a time. Is there a way to do this in Octopus?


Hi Jafar,

Thanks for getting in touch! Our retention policies currently let you set the number of releases per environment (or Lifecycle phase). This means you can set it to 10 for dev, then again 10 for QA and 10 for PROD). It means you will always have 10 (or whatever number you specify) saved for each phase. We do not have anything that would mark a specific release as ‘never cleanup’. Could you explain more about a use case where you would want 2 specific releases saved for rollback that were more than 10 releases behind in Prod?

Let me know!