diff --git a/src/org/SHS/Platforms.groovy b/src/org/SHS/Platforms.groovy index 7211789..82edc2f 100644 --- a/src/org/SHS/Platforms.groovy +++ b/src/org/SHS/Platforms.groovy @@ -23,8 +23,28 @@ class Platforms { steps.print("blackList = ${blackList}") _root.Platforms.each { key, dist -> if (dist.enabled) { - steps.stage ("${key}${stageSuffix}") { - functor(dist) + ok = true; + dn = key.toLowerCase() + if (whiteList.size() > 0) { + for (l in whiteList) { + if (dn.indexOf(l) < 0) { + ok = false; + steps.print("${key} skip because of whiteList") + break; + } + } + } + for (l in blackList) { + if (dn.indexOf(l) >= 0) { + ok = false; + steps.print("${key} skip because of blackList") + break; + } + } + if (ok) { + steps.stage ("${key}${stageSuffix}") { + functor(dist) + } } } }