Skip to content

Commit c5d57cc

Browse files
committed
ci: Clean workspace after every stage
Clean the workspace after every stage (ie, test) to avoid filling disk. The downside of this change is that we can't reuse a checkout of OMPI between stages that run on the same build node. The upside is that we are much less likely to run out of disk space during a test. We ran into some issues today when there were many builds, because the workspace name is different between pull requests, and when a build node had enough checkouts (one for each pull request), we filled the disk. Signed-off-by: Brian Barrett <bbarrett@amazon.com>
1 parent df5a394 commit c5d57cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.ci/community-jenkins/Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def prepare_build(build_name, label, build_arg) {
8080
node(label) {
8181
checkout(changelog: false, poll: false, scm: scm)
8282
sh "/bin/bash -x .ci/community-jenkins/pr-builder.sh ${build_arg} ompi"
83+
cleanWs(notFailBuild: true)
8384
}
8485
}
8586
}

0 commit comments

Comments
 (0)