From 8e050c2811074af2188dd3b4c285c92ba4672aa7 Mon Sep 17 00:00:00 2001 From: Lan Xia Date: Tue, 20 Aug 2024 09:40:21 -0400 Subject: [PATCH] Allow user to set DYNAMIC_COMPILE related: https://github.com/eclipse-openj9/openj9/issues/20004 Signed-off-by: Lan Xia --- buildenv/jenkins/testJobTemplate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildenv/jenkins/testJobTemplate b/buildenv/jenkins/testJobTemplate index cb29989cf0..d975d42d9c 100644 --- a/buildenv/jenkins/testJobTemplate +++ b/buildenv/jenkins/testJobTemplate @@ -66,6 +66,7 @@ if (!binding.hasVariable('RERUN_ITERATIONS')) RERUN_ITERATIONS = "0" if (!binding.hasVariable('JENKINS_KEY')) JENKINS_KEY = "" if (!binding.hasVariable('RELATED_NODES')) RELATED_NODES = "" if (!binding.hasVariable('ADDITIONAL_ARTIFACTS_REQUIRED')) ADDITIONAL_ARTIFACTS_REQUIRED = "" +if (!binding.hasVariable('DYNAMIC_COMPILE')) DYNAMIC_COMPILE = false if (!binding.hasVariable('BUILDS_TO_KEEP')) { BUILDS_TO_KEEP = 10 @@ -347,7 +348,7 @@ ARCH_OS_LIST.each { ARCH_OS -> sectionHeaderStyle(sectionHeaderHelpTextStyleCss) } stringParam('BUILD_LIST', "${ACTUAL_BUILD_LIST}", '''Specific test directories to compile. This can be a comma-separated list of directories.
Advisable to specify to a granularity that suits the targets you want to run. BUILD_LIST value can be the following:
top level folder: openjdk|system|perf|jck|external|functional
sub-folder: functional/Java8andUp|perf/dacapo
multiple folders: system,functional
''') - booleanParam('DYNAMIC_COMPILE', false, '''WIP. It only works with functional tests atm.
+ booleanParam('DYNAMIC_COMPILE', DYNAMIC_COMPILE.toBoolean(), '''WIP. It only works with functional tests atm.
Optional. Use DYNAMIC_COMPILE to automatically compile the required test material.
When DYNAMIC_COMPILE is on:
- if there is no BUILD_LIST input, DYNAMIC_COMPILE will automatically figure out which test material to compile based on the test target.