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

Purge old artifacts from repo by custom rule

    Details

      Description

      I use nexus also to store raw files in repositories (like installs, backups, box images, etc).
      In nexus 2 I was able to easily purge artifacts on my rules, like:

      find /opt/repository/data/backup-repo -type f -wholename '*/DAILY/*' -mtime +7 -delete
      find /opt/repository/data/backup-repo -type f -wholename '*/WEEKLY/*' -mtime +24 -delete
      find /opt/repository/data/backup-repo -type f -wholename '*/MONTHLY/*' -mtime +183 -delete
      

      Now filesystem is obfuscated by "blobstore". Groovy scheduled tasks doesn't help: it is undocumented at all, and I have no idea how to write that scripts. Keep in mind that nexus administrators NOT always a "Java and Groovy experts".

      Also I unable to purge old releases.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jsirex Yauhen Artsiukhou
              Last Updated By:
              Rich Seddon Rich Seddon
              Votes:
              10 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title