robustness against empty mirror var
authorErik Brakkee <erik@brakkee.org>
Sun, 17 Nov 2024 19:15:54 +0000 (20:15 +0100)
committerErik Brakkee <erik@brakkee.org>
Sun, 17 Nov 2024 19:15:54 +0000 (20:15 +0100)
vars/buildcontainer.groovy

index e37145036072275d7787cad1258db56f9e5c65be..643cec461900ee3fa2ed9a1ffdcda2b0eecd5d68 100644 (file)
@@ -25,7 +25,7 @@ def call(Map args) {
 
   mirrorArg = ""
   if (args.mirror) {
-    mirrorArg = "--registry-mirror ${mirrorArg}"
+    mirrorArg = "--registry-mirror '${mirrorArg}'"
   }
   container('kaniko') { 
     sh """