ci: fix harbor source dir + cleanup

This commit is contained in:
bstein 2025-12-17 02:36:39 -03:00
parent 24ca85f025
commit 1dfee091fe

5
Jenkinsfile vendored
View File

@ -102,7 +102,8 @@ spec:
sh ''' sh '''
set -euo pipefail 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}" cd "${SRC_DIR}"
export VERSIONTAG="${VERSIONTAG}" export VERSIONTAG="${VERSIONTAG}"
@ -139,7 +140,7 @@ spec:
} }
post { post {
always { always {
cleanWs() deleteDir()
} }
} }
} }