This is an automated email from the ASF dual-hosted git repository.
ronny pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new 72936f80e ci: Use deleteDir() (non Docker workers) to cleanup
workspace directory
72936f80e is described below
commit 72936f80eca5e99ce00426085f7608391862db3a
Author: Ronny Berndt <[email protected]>
AuthorDate: Sat Mar 28 16:01:39 2026 +0100
ci: Use deleteDir() (non Docker workers) to cleanup workspace directory
We can use deleteDir() at the end of the native stages.
On Windows the cleanup command doesn't work completely,
replace it with the provided Jenkins method. Use it
at the other native CI workers too.
---
build-aux/Jenkinsfile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/build-aux/Jenkinsfile b/build-aux/Jenkinsfile
index 0b9b643af..1cc60dfd1 100644
--- a/build-aux/Jenkinsfile
+++ b/build-aux/Jenkinsfile
@@ -358,7 +358,8 @@ def generateNativeStage(platform) {
finally {
junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml,
**/src/mango/nosetests.xml, **/test/javascript/junit.xml'
sh 'killall -9 beam.smp || true'
- sh "${wscleanup()}"
+ // deleteDir is OK here because we're not inside of a Docker
container!
+ deleteDir()
}
} else {
//steps to configure and build CouchDB on Windows platforms
@@ -462,7 +463,8 @@ def generateNativeStage(platform) {
error("Build step failed with error: ${err.getMessage()}")
}
finally {
- powershell( script: "Remove-Item -Path '${WORKSPACE}\\*'
-Force -Recurse -ErrorAction SilentlyContinue")
+ // deleteDir is OK here because we're not inside of a Docker
container!
+ deleteDir()
}
}
}