Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-19424

Add ability to cleanup by "Never downloaded"

Details

    Description

      We have a repositories (Docker and Maven) with assigned cleanup policy with only "Last Downloaded Before" field specified in Criteria

      And scheduled task of type "Admin - Cleanup repositories using their associated policies" to apply those policies

      But looks like this criteria is not working properly, because I see dozens of maven artifacts and docker tags that haven't been downloaded at all, and created months ago

      In repository browser I can see something like this

      Blob created	  Thu Jan 17 2019 14:35:20 GMT+0300 (Moscow Standard Time)
      Blob updated	  Thu Jan 17 2019 14:35:20 GMT+0300 (Moscow Standard Time)
      Last downloaded	  has not been downloaded
      

      When I examine task logs, I see something like this

      2019-03-14 20:01:37,871+0000 INFO  [quartz-3-thread-19]  *SYSTEM org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl - Deleting components in repository docker-snapshots using policy Clean_not_in_use_for_2_weeks
      2019-03-14 20:01:37,879+0000 INFO  [quartz-3-thread-19]  *SYSTEM org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl - 2 components cleaned up for repository docker-snapshots
      

      Attachments

        Issue Links

          Activity

            People

              isverdlov Ivan Sverdlov [X] (Inactive)
              betalb Vitalii
              Peter Lynch Peter Lynch
              Original Nexus - Trinity - not for new tickets
              Votes:
              13 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                tigCommentSecurity.panel-title