Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows docker build ensure cleanWorkspace cleans build tmp workspace #1167

Merged
merged 9 commits into from
Dec 18, 2024
11 changes: 11 additions & 0 deletions pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2199,6 +2199,17 @@ def buildScriptsAssemble(
}
cleanWorkspace = false
}
// For Windows build also clean alternative workspace
andrew-m-leonard marked this conversation as resolved.
Show resolved Hide resolved
if ( buildConfig.TARGET_OS == 'windows' ) {
context.ws(workspace) {
try {
context.println "Windows build cleaning" + context.WORKSPACE
context.cleanWs notFailBuild: true
} catch (e) {
context.println "Failed to clean ${e}"
andrew-m-leonard marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
}
} catch (FlowInterruptedException e) {
throw new Exception("[ERROR] Controller clean workspace timeout (${buildTimeouts.CONTROLLER_CLEAN_TIMEOUT} HOURS) has been reached. Exiting...")
Expand Down
Loading