Skip to content

Commit

Permalink
Manually delete problimatic file on windows (#1892)
Browse files Browse the repository at this point in the history
* Also disables DeferredWipeout on hotspot builds because why not

Signed-off-by: Morgan Davies <morgan.davies@ibm.com>
  • Loading branch information
Morgan Davies authored Jun 16, 2020
1 parent 3ab586e commit 7647697
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,10 @@ class Build {
return context.stage("build") {
if (cleanWorkspace) {
try {
if (buildConfig.TARGET_OS == "windows" && buildConfig.VARIANT == "openj9") {
if (buildConfig.TARGET_OS == "windows") {
// Softlayer machines struggle to clean themselves
// https://github.com/AdoptOpenJDK/openjdk-build/issues/1855
context.sh(script: "rm -rf C:/workspace/openjdk-build/workspace/build/src/build/*/jdk/gensrc")
context.cleanWs notFailBuild: true, disableDeferredWipeout: true, deleteDirs: true
} else {
context.cleanWs notFailBuild: true
Expand Down

0 comments on commit 7647697

Please sign in to comment.