Skip to content

Commit d2c9e16

Browse files
committed
chore(jenkins): update base directory for MatrixCheckout cleanup script
1 parent 52e547c commit d2c9e16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.jenkins.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ Check console output at "<a href="${env.BUILD_URL}">${env.JOB_NAME} [${env.BRANC
205205
if (MATRIX_JDK == latestSupportedJDK) {
206206
sh '''
207207
set -eu
208-
base_dir="workspace/${JOB_NAME}/.."
208+
base_dir="workspace"
209209
if [ -d "$base_dir" ]; then
210-
find "$base_dir" -name MatrixCheckout -mindepth 2 -maxdepth 2 -type d -mtime +30 -print # -exec rm -rf {} +
210+
find "$base_dir" -name MatrixCheckout -mindepth 4 -maxdepth 4 -type d -mtime +30 -print # -exec rm -rf {} +
211211
fi
212212
'''
213213
}

0 commit comments

Comments
 (0)