ci: fix harbor source dir + cleanup
This commit is contained in:
parent
24ca85f025
commit
1dfee091fe
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user