From c40dcce3d59eb1915c0df67e610adb928e5c0657 Mon Sep 17 00:00:00 2001 From: Marc Mattmueller Date: Mon, 4 Oct 2021 11:14:26 +0200 Subject: [PATCH] jenkins/common: added trailing slash to path for cleanup Signed-off-by: Marc Mattmueller --- Jenkinsfile_Common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile_Common b/Jenkinsfile_Common index 8c4385a..6dd3254 100644 --- a/Jenkinsfile_Common +++ b/Jenkinsfile_Common @@ -26,8 +26,8 @@ echo "loading common yocto build module..." def cleanWorkspace() { println "cleaning workspace..." - 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 \"${WORKSPACE}/build-common/sstate-cache/\" -name \"sstate*\" -atime +3 -delete" + sh "find \"${env.SHARED_BUILD}/tmp/work/\" -name temp -type d -exec rm -rf {} +" }