Search code examples
azure-devopsazure-artifacts

How to change snapshot retention number from 25 to 10


How to change the snapshot retention policy of an artifact from 25 to 10? As shown in the image, by default Azure will retain the last 25 snapshots for an artifact. We need to decrease this to 10.

enter image description here


Solution

  • This is by design. You can store up to 30 Maven snapshots in your feed. Once you reach the maximum limit, Azure Artifacts will automatically delete snapshots down to 25. This process will be triggered automatically every time 30+ snapshots are published to your feed. See Handling Maven snapshots for more info.