diff --git a/pipelines/build/common/build_base_file.groovy b/pipelines/build/common/build_base_file.groovy index 890408eb7..58299d5db 100644 --- a/pipelines/build/common/build_base_file.groovy +++ b/pipelines/build/common/build_base_file.groovy @@ -131,15 +131,15 @@ class Builder implements Serializable { def platformCleanWorkspaceAfterBuild = getCleanWorkspaceAfterBuild(platformConfig) // Always clean on mac due to https://github.com/adoptium/temurin-build/issues/1980 - def cleanWorkspace = cleanWorkspaceBeforeBuild + def cleanWorkspaceBefore = cleanWorkspaceBeforeBuild if (platformConfig.os == 'mac') { - cleanWorkspace = true + cleanWorkspaceBefore = true } - def cleanWsAfter = cleanWorkspaceAfterBuild + def cleanWorkspaceAfter = cleanWorkspaceAfterBuild if (platformCleanWorkspaceAfterBuild) { // Platform override specified - cleanWsAfter = platformCleanWorkspaceAfterBuild + cleanWorkspaceAfter = platformCleanWorkspaceAfterBuild } return new IndividualBuildConfig( @@ -181,8 +181,8 @@ class Builder implements Serializable { ENABLE_TESTDYNAMICPARALLEL: enableTestDynamicParallel, ENABLE_INSTALLERS: enableInstallers, ENABLE_SIGNER: enableSigner, - CLEAN_WORKSPACE: cleanWorkspace, - CLEAN_WORKSPACE_AFTER: cleanWsAfter, + CLEAN_WORKSPACE_BEFORE: cleanWorkspaceBefore, + CLEAN_WORKSPACE_AFTER: cleanWorkspaceAfter, CLEAN_WORKSPACE_BUILD_OUTPUT_ONLY_AFTER: cleanWorkspaceBuildOutputAfterBuild ) } diff --git a/pipelines/build/common/config_regeneration.groovy b/pipelines/build/common/config_regeneration.groovy index 3e8932228..a85ce76f4 100644 --- a/pipelines/build/common/config_regeneration.groovy +++ b/pipelines/build/common/config_regeneration.groovy @@ -460,7 +460,7 @@ class Regeneration implements Serializable { ENABLE_TESTDYNAMICPARALLEL: DEFAULTS_JSON['testDetails']['enableTestDynamicParallel'] as Boolean, ENABLE_INSTALLERS: true, ENABLE_SIGNER: true, - CLEAN_WORKSPACE: true, + CLEAN_WORKSPACE_BEFORE: true, CLEAN_WORKSPACE_AFTER: true, CLEAN_WORKSPACE_BUILD_OUTPUT_ONLY_AFTER: false ) diff --git a/pipelines/build/common/create_job_from_template.groovy b/pipelines/build/common/create_job_from_template.groovy index 4ca777508..d93880feb 100644 --- a/pipelines/build/common/create_job_from_template.groovy +++ b/pipelines/build/common/create_job_from_template.groovy @@ -121,7 +121,7 @@ pipelineJob("$buildFolder/$JOB_NAME") {
./configure
")
stringParam('additionalBuildArgs', '', 'Additional arguments to be passed to makejdk-any-platform.sh
')
stringParam('overrideFileNameVersion', '', "When forming the filename, ignore the part of the filename derived from the publishName or timestamp and override it.OpenJDK8U-jre_ppc64le_linux_openj9_FOO.tar.gz
")
- booleanParam('useAdoptBashScripts', adoptScripts, "If enabled, the downstream job will pull and execute make-adopt-build-farm.sh
from adoptium/temurin-build. If disabled, it will use whatever the job is running inside of at the time, usually it's the default repository in the configuration.")
+ booleanParam('useAdoptShellScripts', adoptScripts, "If enabled, the downstream job will pull and execute make-adopt-build-farm.sh
from adoptium/temurin-build. If disabled, it will use whatever the job is running inside of at the time, usually it's the default repository in the configuration.")
booleanParam('cleanWorkspaceBeforeBuild', false, 'Clean out the workspace before the build')
booleanParam('cleanWorkspaceAfterBuild', false, 'Clean out the workspace after the build')
booleanParam('cleanWorkspaceBuildOutputAfterBuild', cleanWsBuildOutput, 'Clean out the workspace/build/src/build and workspace/target output only, after the build')
diff --git a/pipelines/src/test/groovy/IndividualBuildConfigTest.groovy b/pipelines/src/test/groovy/IndividualBuildConfigTest.groovy
index b46a4cb98..875bf05e1 100644
--- a/pipelines/src/test/groovy/IndividualBuildConfigTest.groovy
+++ b/pipelines/src/test/groovy/IndividualBuildConfigTest.groovy
@@ -45,7 +45,7 @@ class IndividualBuildConfigTest {
ENABLE_TESTS : true,
ENABLE_INSTALLERS : true,
ENABLE_SIGNER : true,
- CLEAN_WORKSPACE : false,
+ CLEAN_WORKSPACE_BEFORE : false,
CLEAN_WORKSPACE_AFTER : false,
CLEAN_WORKSPACE_BUILD_OUTPUT_ONLY_AFTER : false
])