From: Erik Brakkee Date: Sun, 17 Nov 2024 19:15:54 +0000 (+0100) Subject: robustness against empty mirror var X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=6893b42a5f9adf9fedf667a898e2645784b23907;p=pipelinelib robustness against empty mirror var --- diff --git a/vars/buildcontainer.groovy b/vars/buildcontainer.groovy index e371450..643cec4 100644 --- a/vars/buildcontainer.groovy +++ b/vars/buildcontainer.groovy @@ -25,7 +25,7 @@ def call(Map args) { mirrorArg = "" if (args.mirror) { - mirrorArg = "--registry-mirror ${mirrorArg}" + mirrorArg = "--registry-mirror '${mirrorArg}'" } container('kaniko') { sh """