Skip to content

Commit

Permalink
To remove test* directories except testDependency
Browse files Browse the repository at this point in the history
Signed-off-by: Aswathy S Kumar <[email protected]>
  • Loading branch information
AswathySK committed Sep 30, 2024
1 parent ecab2f6 commit 3414a0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildenv/jenkins/jobs/infrastructure/Cleanup-Nodes.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ timeout(time: TIMEOUT_TIME.toInteger(), unit: TIMEOUT_UNITS) {
cleanDirsStr += cleanDirs.join(" ${buildWorkspace}/../../")
// shared classes cache
cleanDirsStr += " ${buildWorkspace}/../../javasharedresources /tmp/javasharedresources /temp/javasharedresources"
// to remove {buildWorkspace}/../../test* directories except testDependency
cleanDirsStr = cleanDirsStr.replaceAll("${buildWorkspace}/../../test\\*", "")
sh(script: "ls -d ${buildWorkspace}/../../test* | grep -v '/testDependency\$' | xargs rm -rf", returnStdout: true).trim()
}

// cleanup test results
Expand Down

0 comments on commit 3414a0f

Please sign in to comment.