From f60aa9d78cf942a218d9c851070546272e858be3 Mon Sep 17 00:00:00 2001 From: sophia-guo Date: Thu, 7 Nov 2024 13:57:05 -0500 Subject: [PATCH] Using strict check as env.GENERATE_JOBS is set to any non-empty string (#5737) Signed-off-by: Sophia Guo --- buildenv/jenkins/JenkinsfileBase | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildenv/jenkins/JenkinsfileBase b/buildenv/jenkins/JenkinsfileBase index 24c8b3ec68..45bda01715 100644 --- a/buildenv/jenkins/JenkinsfileBase +++ b/buildenv/jenkins/JenkinsfileBase @@ -1337,7 +1337,7 @@ def addFailedTestsGrinderLink(paths=""){ def generateJob (newJobs, childTest, testJobName) { // If GENERATE_JOBS is set to true, force generate the child job. Otherwise, only generate the child job if it does not exist - if (env.GENERATE_JOBS) { + if (env.GENERATE_JOBS == 'true') { newJobs[childTest] = { echo "GENERATE_JOBS is set to true, set test job ${testJobName} params for generating the job" createJob(testJobName, PLATFORM)