Uploaded image for project: 'Archiva (Retired)'
  1. Archiva (Retired)
  2. MRM-1966

Yet another repository-purge not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.3
    • 3.0.0, 2.2.4
    • None
    • None

    Description

      Hi guys!

      I'm having a bit of a struggle with the automatic purge of snapshots. I have a repository set up with Days Older: 1 and Retention Count: 1. I've also verified that the repository-purge is enabled under Repository Scanning -> Consumers.

      Even with this configured I still see folders (e.g. /srv/archiva/data/repositories/<my_repo>/<path_to_artifact>/1.0.0-SNAPSHOT) with multiple artifacts with timestamps older than what is configured for that repository. The number also does not add up wrt. the retention count policy.

      What I'd like to do is to just have a "Purge By Retention" policy - I'd like to keep the two latest snapshots for each version. My assumption is then to set the "Purge By Days" field to 0 and set the "Purge By Retention" to 2 - but that does not seem to do anything. The documentation (http://archiva.apache.org/docs/2.2.3/adminguide/repositories.html) states the following:

      Days Older	The first option for repository purge. Archiva will check how old the artifact is and if it is older than the set number of days in this field, then the artifact will be deleted respecting the retention count of course. In order to disable the purge by number of days old and set Archiva to purge by retention count, just set the repository purge field to 0. The maximum number of days which can be set here is 1000. See the Repository Purge section below for more details.
      

      Trying to set this value to 0 leads to the following error being thrown by the interface:

      Please enter a value greater than or equal to 1.
      

      Do you guys see what I'm doing wrong? Is my impression about how this is working wrong? Is what I'm trying to achieve possible?

      Thanks.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              p.fjellby Per Kristian Fjellby
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: