From 6a56c0598156bc86639184e63e29a12ba8799466 Mon Sep 17 00:00:00 2001 From: Marc Mattmueller Date: Thu, 21 Oct 2021 11:57:08 +0200 Subject: [PATCH] jenkins/common: made cleanWorkspace dash compatible Signed-off-by: Marc Mattmueller --- Jenkinsfile_Common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile_Common b/Jenkinsfile_Common index 17380e6..a8ad9b9 100644 --- a/Jenkinsfile_Common +++ b/Jenkinsfile_Common @@ -26,8 +26,8 @@ echo "loading common yocto build module..." def cleanWorkspace() { println "cleaning workspace..." - sh "[[ -d \"${WORKSPACE}/build-common/sstate-cache\" ]] && find \"${WORKSPACE}/build-common/sstate-cache/\" -name \"sstate*\" -atime +3 -delete || true" - sh "[[ -d \"${env.SHARED_BUILD}/tmp/work\" ]] && find \"${env.SHARED_BUILD}/tmp/work/\" -name temp -type d -exec rm -rf {} + || true" + sh "[ -d \"${WORKSPACE}/build-common/sstate-cache\" ] && find \"${WORKSPACE}/build-common/sstate-cache/\" -name \"sstate*\" -atime +3 -delete || true" + sh "[ -d \"${env.SHARED_BUILD}/tmp/work\" ] && find \"${env.SHARED_BUILD}/tmp/work/\" -name temp -type d -exec rm -rf {} + || true" }