diff --git a/buildenv/jenkins/JenkinsfileBase b/buildenv/jenkins/JenkinsfileBase index fc2c64e3ba..0fde0e4fe3 100644 --- a/buildenv/jenkins/JenkinsfileBase +++ b/buildenv/jenkins/JenkinsfileBase @@ -1360,7 +1360,11 @@ def triggerRerunJob () { childParams << string(name: param.key, value: "testList TESTLIST=" + env.FAILED_TESTS) } } else if (param.key == "CUSTOM_TARGET") { + if (env.RERUN_TESTCASES) { childParams << string(name: param.key, value: env.RERUN_TESTCASES) + } else { + childParams << string(name: param.key, value: param.value.toString()) + } } else if (param.key == "PARALLEL") { childParams << string(name: param.key, value: "None") } else if (param.key == "NUM_MACHINES") {