From fd9fab460bc733640f57d94dbf06c2be94c2c074 Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Thu, 13 Jun 2024 11:50:04 -0400 Subject: [PATCH] Custom target with non-default testcases can only be the only one target Signed-off-by: Sophia Guo --- buildenv/jenkins/JenkinsfileBase | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildenv/jenkins/JenkinsfileBase b/buildenv/jenkins/JenkinsfileBase index d49c077177..f7fc41fb32 100644 --- a/buildenv/jenkins/JenkinsfileBase +++ b/buildenv/jenkins/JenkinsfileBase @@ -1343,7 +1343,12 @@ def triggerRerunJob () { // set PARALLEL, NUM_MACHINES and TEST_TIME to default values // set TARGET to failed tests and set ITERATIONS to rerunIterations if (param.key == "TARGET") { - childParams << string(name: param.key, value: "testList TESTLIST=" + env.FAILED_TESTS) + if (env.FAILED_TESTS.contains("_custom")) { + // custom target can only support one target per run + childParams << string(name: param.key, value: env.FAILED_TESTS) + } else { + childParams << string(name: param.key, value: "testList TESTLIST=" + env.FAILED_TESTS) + } } else if (param.key == "PARALLEL") { childParams << string(name: param.key, value: "None") } else if (param.key == "NUM_MACHINES") {