From abf8c94970d847f84d57fc15306a60dd17b914f0 Mon Sep 17 00:00:00 2001 From: Steve Hipwell Date: Fri, 14 Feb 2020 07:22:07 +0000 Subject: [PATCH] Fix nexus3 cleanup creation --- charts/nexus3/Chart.yaml | 2 +- charts/nexus3/files/cleanup.groovy | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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