jenkins/common: added trailing slash to path for cleanup

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2021-10-04 11:14:26 +02:00
parent 331fecad75
commit c40dcce3d5
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ echo "loading common yocto build module..."
def cleanWorkspace() { def cleanWorkspace() {
println "cleaning workspace..." println "cleaning workspace..."
sh "find \"${WORKSPACE}/build-common/sstate-cache\" -name \"sstate*\" -atime +3 -delete" sh "find \"${WORKSPACE}/build-common/sstate-cache/\" -name \"sstate*\" -atime +3 -delete"
sh "find \"${env.SHARED_BUILD}/tmp/work\" -name temp -type d -exec rm -rf {} +" sh "find \"${env.SHARED_BUILD}/tmp/work/\" -name temp -type d -exec rm -rf {} +"
} }