From 66b6df31dba98bb7e24fb3095f24c919dfc48303 Mon Sep 17 00:00:00 2001
From: Martin Hierholzer <martin.hierholzer@desy.de>
Date: Mon, 3 Dec 2018 10:57:26 +0100
Subject: [PATCH] Update helper.groovy

---
 vars/helper.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vars/helper.groovy b/vars/helper.groovy
index 1d30b74..bfc960d 100644
--- a/vars/helper.groovy
+++ b/vars/helper.groovy
@@ -50,8 +50,8 @@ def doPrepare(boolean checkoutScm, String gitUrl='') {
   // clean workspace
   sh '''
     chown -R msk_jenkins .
+    find -mindepth 1 -maxdepth 1 -exec rm -rf \{\} \;
   '''
-  deleteDir()
   
   // Make sure, /var/run/lock/mtcadummy is writeable by msk_jenkins.
   // Create scratch directory. Keep the absolute path fixed, so we can copy the build directory as an artefact for the
-- 
GitLab