Eddy Ma on 20 Feb, 2018 03:54 AM
Thanks for getting in touch! I've set up similar settings locally based on the information you've provided, and it looks like it's working as expected.
If your goal is to keep only 3 releases on Tentacle regardless of channel/version rules, you would want to select Considered for the entire project option under the Discrete Channel Releases section in your project's settings page.
Also note that both the Octopus server and NuGet repository retention policies are run under a scheduled task from the Octopus server every 4 hours. The Tentacle retention policy runs during a deployment, so you can check the deployment task log to see if any files got cleaned up.
You can find more information about retention policies with channels in this doc page and retention policies in general in this doc page.
I hope this helps! Let me know what you think and how you go.
Do you know if this was only fixed in 4.0 as I’m on 3.17.14 and I do not see any Discrete Channel Releases section under the Project settings, only Name, Description, Group, Versioning, Package Step and Package Re-Deployment?
I see the cleanup policy being ran at the end (Apply retention policy on Tentacles<http://neilwind.kssretail.local/app>) but can see that when it says “Keeping this deployment and the previous 3 successful deployments”, it is only cleaning up one deployment from this channel, it does not see the older releases
Eddy Ma on 21 Feb, 2018 04:39 AM
I apologize for pointing you to the project settings page. I was incorrectly assuming you were using version 4.x.
The Discrete Channel Releases was introduced in version 3.12.2, and it's under Project > Process > Deployment Target settings. I've attached a screenshot showing this setting.
I have searched our issues repo and I couldn't find any changes that are related to this issue since 4.0. Provided you are on the latest of 3.x, it should behave the same way.
Could you havea look and check which setting you have? In case this doesn't work, would you mind sending me a copy of your verbose deployment log with debugging variables enabled? This documentation page outlines how you can produce and export this verbose log.