Skip to content

Commit

Permalink
Reduce stashing and avoid pre-unstash chmod in non-docker case
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <[email protected]>
  • Loading branch information
sxa committed Oct 12, 2024
1 parent fe4efb5 commit 7c5abfd
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,7 @@ def buildScriptsAssemble(
batOrSh "rm -rf ${base_path}/jdk/modules/jdk.jpackage/jdk/jpackage/internal/resources/*"
}
context.stage('assemble') {
if ( buildConfig.TARGET_OS == 'windows' ) {
if ( buildConfig.TARGET_OS == 'windows' && buildConfig.DOCKER_IMAGE) {
// SXAEC: Still TBC on this to determine if something fails without it
// Ref https://github.com/adoptium/infrastructure/issues/3723
// Fails to unstash even in non-docker case without the chmod e.g. windbld#840
Expand Down Expand Up @@ -1766,7 +1766,7 @@ def buildScriptsAssemble(
def buildScripts(
cleanWorkspace,
cleanWorkspaceAfter,
cleanWorkspaceOutputAfter,
cleanWorkspaceBuildOutputAfter,
useAdoptShellScripts,
enableSigner,
buildConfigEnvVars
Expand Down Expand Up @@ -1911,9 +1911,15 @@ def buildScriptsAssemble(
}
context.println "base build path for jmod signing = ${base_path}"
context.stash name: 'jmods',
includes: "${base_path}/hotspot/variant-server/**/*," +
"${base_path}/support/modules_cmds/**/*," +
"${base_path}/support/modules_libs/**/*," +
includes: "${base_path}/hotspot/variant-server/**/*.exe," +
"${base_path}/hotspot/variant-server/**/*.dll," +
"${base_path}/hotspot/variant-server/**/*.dylib," +
"${base_path}/support/modules_cmds/**/*.exe," +
"${base_path}/support/modules_cmds/**/*.dll," +
"${base_path}/support/modules_cmds/**/*.dylib," +
"${base_path}/support/modules_libs/**/*.exe," +
"${base_path}/support/modules_libs/**/*.dll," +
"${base_path}/support/modules_libs/**/*.dylib," +
// JDK 16 + jpackage needs to be signed as well stash the resources folder containing the executables
"${base_path}/jdk/modules/jdk.jpackage/jdk/jpackage/internal/resources/*"

Expand Down

0 comments on commit 7c5abfd

Please sign in to comment.