-
Notifications
You must be signed in to change notification settings - Fork 209
[Task Type] Maven | Delete SNAPSHOT
Olivier Clavel edited this page Nov 25, 2019
·
2 revisions
Name of task type (in GUI): Maven - Delete SNAPSHOT
typeId: repository.maven.remove-snapshots
taskProperties:
repositoryName:
type: string
description: Name of repo to clean (* for all)
minimumRetained:
type: integer
description: Minimum number of snapshots to keep
default: 1
snapshotRetentionDays:
type: integer
description: Age in days after which snapshot are deletec
default: 30
gracePeriodInDays:
type: integer
description: Grace period in days when deleting snapshots having a release
booleanTaskProperties:
removeIfReleased:
type: boolean
description: Delete snapshots that have a corresponding release
default: false
nexus_scheduled_tasks:
- name: Clear snapshots older than 1 day, retain 2 and purge the ones with a release
typeId: repository.maven.remove-snapshots
taskProperties:
repositoryName: *
minimumRetained: 2
snapshotRetentionDays: 1
graceperiodInDays: 1
booleanTaskProperties:
removeIfReleased: true
task_alert_email: [email protected]
schedule_type: manual