This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/main by this push:
new a3dfb8ae0 chore(jenkins): clean up custom workspace directories (#2810)
a3dfb8ae0 is described below
commit a3dfb8ae07c42250008528ab1f1b127168ed7415
Author: Lenny Primak <[email protected]>
AuthorDate: Thu Jul 9 09:46:32 2026 -0500
chore(jenkins): clean up custom workspace directories (#2810)
---
.jenkins.groovy | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.jenkins.groovy b/.jenkins.groovy
index c58f9d914..5de09d4b1 100644
--- a/.jenkins.groovy
+++ b/.jenkins.groovy
@@ -202,6 +202,16 @@ Check console output at "<a
href="${env.BUILD_URL}">${env.JOB_NAME} [${env.BRANC
// (in this case we probably don't have to do any
post-build analysis)
cleanBeforeCheckout()
script {
+ // remove MatrixCheckout directories older than 30
days to save disk space
+ sh '''
+ set -eu
+ base_dir="../../../.."
+ if [ -d "$base_dir" ]; then
+ find "$base_dir" -name MatrixCheckout
-mindepth 3 -maxdepth 3 -type d -mtime +30 -exec rm -rf {} +
+ fi
+ '''
+
+ // If this build was successful, and the previous
build was not successful, send a "back to normal" email.
if (deployableBranch
&& (currentBuild.previousBuild != null) &&
(currentBuild.previousBuild.result != 'SUCCESS')) {
emailext(