From 6f421cc0b7dd4228b9ee5731753a8c6c6cba93d6 Mon Sep 17 00:00:00 2001 From: Aswathy S Kumar Date: Wed, 25 Sep 2024 13:30:20 +0530 Subject: [PATCH] To remove test* directories except testDependency Signed-off-by: Aswathy S Kumar --- buildenv/jenkins/jobs/infrastructure/Cleanup-Nodes.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildenv/jenkins/jobs/infrastructure/Cleanup-Nodes.groovy b/buildenv/jenkins/jobs/infrastructure/Cleanup-Nodes.groovy index d999c920798..717f657ddb8 100644 --- a/buildenv/jenkins/jobs/infrastructure/Cleanup-Nodes.groovy +++ b/buildenv/jenkins/jobs/infrastructure/Cleanup-Nodes.groovy @@ -165,7 +165,7 @@ timeout(time: TIMEOUT_TIME.toInteger(), unit: TIMEOUT_UNITS) { cleanDirsStr += " ${buildWorkspace}/../../javasharedresources /tmp/javasharedresources /temp/javasharedresources" //to remove {buildWorkspace}/../../test* directories except testDependency cleanDirsStr = cleanDirsStr.replaceAll("${buildWorkspace}/../../test\\*", "") - sh(script: "find ${buildWorkspace}/../../ -maxdepth 1 -name 'TestDependency*' -prune -o -name 'test*' -exec rm -rf {} +", returnStdout: true).trim() + sh(script: "find ${buildWorkspace}/../../ -maxdepth 1 -name 'TestDependency*' -prune -o -name 'test*' -exec rm -rf {} +", returnStdout: true).trim() } // cleanup test results