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

task to remove packages from NuGet Repositories

    Details

    • Type: Story
    • Status: Refine
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.1
    • Fix Version/s: None
    • Component/s: NuGet
    • Labels:
    • Notability:
      4

      Description

      With a goal of reducing the number of NuGet packages stored in Nexus, there should be a scheduled task that can be defined with the following criteria:

      1. Remove all pre-release package versions if there is at least one release package version in a set of repositories
      2. Keep up to n unique semantic package *pre-release* versions at level major

      For item 2, for example:

      We have upcoming releases of version 4.7.0 and 4.5.1 and development is on version 5.0.0
      This means our build servers generate packages for all these three versions:
      4.7.0.1234
      4.5.1.1235
      4.5.1.1236
      4.7.0.1237
      5.0.0.1238
      5.0.0.1239
      ... (and so on)

      After clean we only want to see the following remain:

      4.5.1.1236
      4.7.0.1237
      5.0.0.1239

      If I configure N = 1 in the component selector.

      These requirements are very similar to the Maven specific Remove Releases and Remove Snapshots tasks.

      This would require us though implementing a component selector that was:

      • specific to NuGet packages and their versioning specification: https://docs.nuget.org/create/versioning
      • require that packages strictly follow the versioning guidelines that NuGet outlines in their documentation

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Joe Tom Joe Tom
              Votes:
              7 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title