Ask A Question

View Question

We have a production and test server hosting ProGet for our company (paid).

We are trying to implement a retention policy in Test and then Prod when ready. I have tried this in dry run mode and outside dry run mode with no results.

The Rule set up is:
Delete cached connector packages
Delete old versions (all except latest 30 versions)

When I go and check the Executions section for the feed cleanup log, it outputs:

Beginning cleanup for Octopus (NuGet) feed.
Starting feed retention check...
Checking for feed retention rules...
Feed has 1 retention rule.
Checking rule 1...
Only delete cached packages.
Never delete the most recent 30 versions of packages.
Finding packages that match retention rule 1...
Getting count of matching packages...
0 packages qualify for deletion under this rule.
Deleting matching packages...
Dry run mode is set; nothing will actually be deleted.
Deleted 0 packages (0 KB total).
Done checking rule 1.
Feed retention check completed.
Cleanup complete.

However, there are packages with 30+ versions in this feed that have not been deleted or shown to be deleted in dry run.

Can you assist?

Product: ProGet
Version: 5.1.4

Keep in mind that retention rules work on an AND basis, so when you select:

  • Delete cached connector packages
  • Delete old versions (all except latest 30 versions)

You get only packages that match BOTH of those rules:

  • Only delete cached packages.
  • Never delete the most recent 30 versions of packages.

I'm guessing that your packages don't match BOTH those rules;

Answer Question