From cf01628256df986a2694fbf5023d510d79a77647 Mon Sep 17 00:00:00 2001 From: nhyatt Date: Sun, 22 Oct 2023 13:36:47 -0500 Subject: [PATCH] escape the escape! --- vars/declarativeFunctions.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/declarativeFunctions.groovy b/vars/declarativeFunctions.groovy index 411512b..2f62b83 100644 --- a/vars/declarativeFunctions.groovy +++ b/vars/declarativeFunctions.groovy @@ -64,7 +64,7 @@ def readSecret (Map config) { serverUrl: config.kubeURL, namespace: config.namespace ]) { - def safeSecretID = config.secretID.replaceAll(/\./, "\\.") + def safeSecretID = config.secretID.replaceAll(/\./, "\\\\.") def output = sh( returnStdout: true, script: """#Read Secret