Skip to content

Commit

Permalink
Windows docker build ensure cleanWorkspace cleans build tmp workspace
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard committed Dec 17, 2024
1 parent 4c1a1f8 commit 86d6212
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2199,11 +2199,11 @@ def buildScriptsAssemble(
}
cleanWorkspace = false
}
// For Windows docker build also clean alternative workspace
if ( buildConfig.TARGET_OS == 'windows' && buildConfig.DOCKER_IMAGE ) {
// For Windows build also clean alternative workspace
if ( buildConfig.TARGET_OS == 'windows' ) {
context.ws(workspace) {
try {
context.println "Windows docker build cleaning" + context.WORKSPACE
context.println "Windows build cleaning" + context.WORKSPACE
context.cleanWs notFailBuild: true
} catch (e) {
context.println "Failed to clean ${e}"
Expand Down

0 comments on commit 86d6212

Please sign in to comment.