diff --git a/charts/nexus3/Chart.yaml b/charts/nexus3/Chart.yaml index 76650375..640540de 100644 --- a/charts/nexus3/Chart.yaml +++ b/charts/nexus3/Chart.yaml @@ -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: diff --git a/charts/nexus3/files/cleanup.groovy b/charts/nexus3/files/cleanup.groovy index cc73c2a7..a5e0addb 100644 --- a/charts/nexus3/files/cleanup.groovy +++ b/charts/nexus3/files/cleanup.groovy @@ -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