Hi there,
Hope you are doing well.
We are using Octopus Deploy to as our Continous Deployment tool and currently, we are deploying some frontend packages. We have been seeing some weird behaviour from Octopus Deploy package retention policy. I pushed a package to build in repository on 7th March, 2019. We have set our package repository retention policy to 4 days. And it also says that package used in a release will not be deleted unless the release is deleted. I have used that package as a reference in one of the steps that we configured. But still, it deleted my package yesterday stating “Package UXP-Dashboard version 7151 was deleted from the built-in repository due to the package repository retention policy”. I am not sure why it is deleting the package which is being used in the release and also has reference to the step. This has happened earlier also. Not sure what is wrong here. Below are the details in the order.
1. Push Package
2019-03-07 11:31:38 AM +00:00 Package UXP-Dashboard version 7151 was pushed to the builtin feed
2. Package reference in Step.
3.Package Deployed to DEV Environment.
4. Tried to promote release from DEV to STG.
5.Audit log - Deleted Package.
2019-03-11 01:27:29 PM +00:00 Package UXP-Dashboard version 7151 was deleted from the built-in repository due to the package repository retention policy
Please suggest what is wrong here. Why is it deleting the package even if it has a referenced release created and it has separate retention policy in Lifecycle to keep last 5 releases.
Thanks.