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 '''
|
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user