nexus-repository-composer icon indicating copy to clipboard operation
nexus-repository-composer copied to clipboard

Implement cleanup policy

Open ThYpHo0n opened this issue 3 years ago • 2 comments

This PR addresses https://github.com/sonatype-nexus-community/nexus-repository-composer/issues/63 and implements the needed changes to assign cleanup policies to Composer repositories. This greatly helps to maintain your Nexus instance to not waste disk space for old/unused artifacts.

I used the referenced PR from the issue pointing to the Conan repo plugin and how they implemented there.

image

It relates to the following issue #s:

  • Fixes #63

I tested it successfully on our own Nexus instance and it cleaned up the artifact as expected.

ThYpHo0n avatar Dec 07 '21 13:12 ThYpHo0n

Thanks for the contribution! Before we can merge this, we need @ThYpHo0n to sign the Sonatype Contributor License Agreement.

sonatypecla[bot] avatar Dec 07 '21 13:12 sonatypecla[bot]

@bhamail any ETA/feedback for this PR to be merged?

ThYpHo0n avatar Apr 12 '22 08:04 ThYpHo0n

Changes after the merge still look good to me 👍🏻

ThYpHo0n avatar Nov 07 '22 22:11 ThYpHo0n

The cleanup task does not find any composer components to remove. I set the cleanup policy for components with no downloads in 1 day, or in 30 days, and the search in repositories does not find any.

image

I am using Nexus 3.47 and Composer plugin 0.0.29 released on Nov 7, 2022. Can anyone confirm the composer cleanup works for you properly?

githoober avatar Feb 20 '23 23:02 githoober