From da1986e154b596f6b3c2b29796e10024c95f3468 Mon Sep 17 00:00:00 2001 From: peri4 Date: Tue, 25 Apr 2023 12:47:49 +0300 Subject: [PATCH] f3 --- src/org/SHS/Platforms.groovy | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) 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) + } } } }