This commit is contained in:
Ovidio Mallo 2016-12-15 18:23:59 +01:00
parent 242eda5f3e
commit 52fabd4bb0

View file

@ -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}"
}