Skip to content

Commit

Permalink
Fix nexus3 cleanup creation
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehipwell committed Feb 14, 2020
1 parent 4f504a7 commit abf8c94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/nexus3/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: nexus3
version: 1.2.2
version: 1.2.3
appVersion: 3.20.1
description: Sonatype Nexus OSS is an open source repository manager
keywords:
Expand Down
3 changes: 2 additions & 1 deletion charts/nexus3/files/cleanup.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ if (policyStorage.exists(params.name)) {
cleanupPolicy.setCriteria(params.criteria);
policyStorage.update(cleanupPolicy);
} else {
policyStorage.add(new CleanupPolicy(params.name, params.notes, params.format, params.mode, params.criteria));
def policy = policyStorage.newCleanupPolicy()
policyStorage.add(policy);
}

return true

0 comments on commit abf8c94

Please sign in to comment.