From fcc5304ce6be423c2f7d1be0df4e27a14fcb3a2d Mon Sep 17 00:00:00 2001 From: Ovidio Mallo Date: Thu, 15 Dec 2016 18:25:44 +0100 Subject: [PATCH] buh --- deployment/pipeline.groovy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deployment/pipeline.groovy b/deployment/pipeline.groovy index 1518758..fff3310 100644 --- a/deployment/pipeline.groovy +++ b/deployment/pipeline.groovy @@ -14,6 +14,7 @@ def parseYaml(content) { return new Yaml().load(content) } +@NonCPS def ocTemplateParametersAsCommandLineOpt(parameters) { parameters.collect { parameter -> "-v ${parameter}" }.join(" ") } @@ -54,9 +55,11 @@ def ocTag(isNamespace, isName, sourceTag, targetTag) { def ocDeploy(namespace, name, config) { def replicas = getReplicas(namespace, name) - config.delete.each { target -> ocDelete(namespace, target) } + for (def target : config.delete) { + ocDelete(namespace, target) + } - config.templates.each { template -> + for (def template : config.templates) { def manifest = template.manifest def parameters = template.parameters.clone() if (replicas) {