This commit is contained in:
2023-04-25 12:47:49 +03:00
parent abf04b791b
commit da1986e154

View File

@@ -23,11 +23,31 @@ class Platforms {
steps.print("blackList = ${blackList}")
_root.Platforms.each { key, dist ->
if (dist.enabled) {
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)
}
}
}
}
}
}