From 52fabd4bb0c17012f229c626da40a8558de042cb Mon Sep 17 00:00:00 2001 From: Ovidio Mallo Date: Thu, 15 Dec 2016 18:23:59 +0100 Subject: [PATCH] buh --- deployment/pipeline.groovy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deployment/pipeline.groovy b/deployment/pipeline.groovy index 5041583..1518758 100644 --- a/deployment/pipeline.groovy +++ b/deployment/pipeline.groovy @@ -36,9 +36,13 @@ def ocDelete(namespace, target) { def ocBuild(namespace, name, config) { def ocCmd = getOcCmd() - config.delete.each { target -> ocDelete(namespace, target) } + for (def target : config.delete) { + ocDelete(namespace, target) + } - config.templates.each { template -> ocApplyTemplate(namespace, template) } + for (def template : config.templates) { + ocApplyTemplate(namespace, template) + } sh "${ocCmd} start-build ${name} -w -n ${namespace}" }