From 1dfee091fee947212aab150a38434232e5681771 Mon Sep 17 00:00:00 2001 From: bstein Date: Wed, 17 Dec 2025 02:36:39 -0300 Subject: [PATCH] ci: fix harbor source dir + cleanup --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 565b302..a3e4760 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -102,7 +102,8 @@ spec: sh ''' set -euo pipefail - SRC_DIR=$(find harbor-src -maxdepth 1 -type d -name "harbor-*" | head -n1) + # `harbor-src/` itself matches `harbor-*`, so exclude it. + SRC_DIR=$(find harbor-src -mindepth 1 -maxdepth 1 -type d -name "harbor-*" | head -n1) cd "${SRC_DIR}" export VERSIONTAG="${VERSIONTAG}" @@ -139,7 +140,7 @@ spec: } post { always { - cleanWs() + deleteDir() } } }