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 25, 2024
1 parent 6cfbee6 commit 6f421cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildenv/jenkins/jobs/infrastructure/Cleanup-Nodes.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f421cc

Please sign in to comment.