For my maven enterprise repository, I use Sonatype Nexus, deployed as a Tomcat6 webapp.
I've configured default snapshots cleanup task. Unfortunatly, each week (or each pair of week, don't know exactly), that machine reaches 100% disk occupation, and I have to go in the /usr/share/tocmat6/sonatype-work/nexus/storage/snapshots/.nexus/trash
folder to perform a rm -rf
.
This is incredibly stupid ! And I'm quite sure it's my own stupid. So, what can I do to have the trash empty task really clean up that folder ?
You need to configure a task to clean the trash
Empty trash
These instructions should work on nexus 1.8 and above. They might work on previous versions, but I don't have any installed.
Turns out default configuration of "Empty trash" is to delete items older than 180
days ! This is clearly not suitable for a continuous integration server ! I changed that value to 5
days.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With