Skip to content

Commit

Permalink
Merge pull request #8010 from dnakamura/intfix2
Browse files Browse the repository at this point in the history
Jenkins: Update handling of test target names
  • Loading branch information
pshipton committed Dec 6, 2019
2 parents d6314e9 + d1dfd11 commit e153031
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion buildenv/jenkins/common/pipeline-functions.groovy
Expand Up @@ -474,7 +474,15 @@ def get_test_target_names() {
if (TESTS_TARGETS && TESTS_TARGETS.trim() != 'none') {
for (target in TESTS_TARGETS.trim().replaceAll("\\s","").toLowerCase().tokenize(',')) {
if (VARIABLES.tests_targets && VARIABLES.tests_targets."${target}") {
targetNames.addAll(VARIABLES.tests_targets."${target}".keySet())
// we might be dealing with a map or a list depending if the variables file has been updated
// to use inheritance or not
def test_target_names = VARIABLES.tests_targets."${target}"
switch(test_target_names){
case Map:
targetNames.addAll(test_target_names.keySet())
default:
targetNames.addAll(test_target_names)
}
} else {
targetNames.add(target)
}
Expand Down

0 comments on commit e153031

Please sign in to comment.