Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.22 KB

README.asciidoc

File metadata and controls

35 lines (30 loc) · 1.22 KB

Nexus Release Cleaner

Nexus Release Cleaner

Cleans out old releases in Nexus

Why?

Nexus can remove snapshots from repositories as a scheduled task but can not remove releases

Usage

Some projects are released more frequently and consume more space than others, you can specify which part of the repository you want to clean

usage: ./NexusCleander.groovy -url <url> -ns <ns> -age <age> -user <user>
                              -pass <pass> [-arm] [-debug <debugLevel>]
 -age <# of months>   Remove everything in the namespace older than age
 -arm                 Execute removal - if not set defaults to a dry run
 -debug <level>       Enable Debug Mode
 -help                This help message
 -ns <ns>             Namespace in Nexus to clean e.g.
                      com/nexuscleaner/someproject
 -pass <pass>         Nexus password
 -url <url>           URL to Nexus instance e.g.
                      http://localhost:8081/nexus
 -user <user>         Nexus user