I created nuget local repository on my Artifactory, and set Max Unique Snapshots option to 10. However artifactory won't delete old packages.
dotnet-snapshots/
├── sompackage/
│ ├── 1.0.0-build1
| | ├── somepackage.1.0.0-build1.nupkg
| ├── 1.0.0-build2
| | ├── somepackage.1.0.0-build2.nupkg
│ ├── ...
| ├── 1.0.0-build25
| | ├── somepackage.1.0.0-build25.nupkg
Where problem can be ? I think it is something with package naming.
It might be related to the layout used by your repository. FYI Artifactory is using this layout to extract some metadata such as the base revision, integration revision (snapshots), module name,...
By default a nuget repository uses the "nuget-default" layout defined like this : "[orgPath]/[module]/[module].baseRev.nupkg"
but in your case you are deploying your nuget packages as if the layout were : "[orgPath]/[module]/baseRev/[module].baseRev.nupkg"
so what you can do is :
re order you repository to match the layout OR create a custom layout that match your deployment path
also when you edit/create a layout you can test it with an existing artifacts to chck Artifactory is extracting what you expect from the deployment path.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments