This is an automated email from the ASF dual-hosted git repository.

ronny pushed a commit to branch jenkins-full-clean-workspaces
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 104946c5bf8717c169e0972d033ab31c445eb26b
Author: Ronny Berndt <[email protected]>
AuthorDate: Sat Mar 21 14:32:53 2026 +0100

    ci: Full cleanup of Jenkins workspace
    
    Hidden files were not deleted after a CI-run.
    Remove all files to have a clean start.
---
 build-aux/Jenkinsfile | 41 +++++++++++++++++++++++++++++++++--------
 1 file changed, 33 insertions(+), 8 deletions(-)

diff --git a/build-aux/Jenkinsfile b/build-aux/Jenkinsfile
index 7e21db44b..80793c52e 100644
--- a/build-aux/Jenkinsfile
+++ b/build-aux/Jenkinsfile
@@ -346,7 +346,10 @@ 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 'rm -rf ${WORKSPACE}/*'
+              sh """
+                  rm -rf ${WORKSPACE}/*
+                  rm -rf ${WORKSPACE}/.*
+                """
             }
           } else {
             //steps to configure and build CouchDB on Windows platforms
@@ -505,7 +508,10 @@ def generateContainerStage(platform) {
                 }
                 finally {
                   junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml, 
**/src/mango/nosetests.xml, **/test/javascript/junit.xml'
-                  sh 'rm -rf ${WORKSPACE}/*'
+                  sh """
+                    rm -rf ${WORKSPACE}/*
+                    rm -rf ${WORKSPACE}/.*
+                  """
                 }
               }
 
@@ -531,7 +537,10 @@ def generateContainerStage(platform) {
                   error("Build step failed with error: ${err.getMessage()}")
                 }
                 finally {
-                  sh 'rm -rf ${WORKSPACE}/*'
+                  sh """
+                    rm -rf ${WORKSPACE}/*
+                    rm -rf ${WORKSPACE}/.*
+                  """
                 }
               }
             }
@@ -604,7 +613,10 @@ pipeline {
       post {
         cleanup {
           // UGH see https://issues.jenkins-ci.org/browse/JENKINS-41894
-          sh 'rm -rf ${WORKSPACE}/*'
+          sh """
+            rm -rf ${WORKSPACE}/*
+            rm -rf ${WORKSPACE}/.*
+          """
         }
       }
     } // stage 'Setup Environment'
@@ -635,7 +647,10 @@ pipeline {
       post {
         cleanup {
           // UGH see https://issues.jenkins-ci.org/browse/JENKINS-41894
-          sh 'rm -rf ${WORKSPACE}/*'
+          sh """
+            rm -rf ${WORKSPACE}/*
+            rm -rf ${WORKSPACE}/.*
+          """
         }
       }
     } // stage Docs Check
@@ -664,7 +679,11 @@ pipeline {
       post {
         cleanup {
           // UGH see https://issues.jenkins-ci.org/browse/JENKINS-41894
-          sh 'rm -rf ${WORKSPACE}/*'
+          sh "rm -rf ${WORKSPACE}/*"
+          sh """
+            rm -rf ${WORKSPACE}/*
+            rm -rf ${WORKSPACE}/.*
+          """
         }
       }
     } // stage Build Docs
@@ -695,7 +714,10 @@ pipeline {
       post {
         cleanup {
           // UGH see https://issues.jenkins-ci.org/browse/JENKINS-41894
-          sh 'rm -rf ${WORKSPACE}/*'
+          sh """
+            rm -rf ${WORKSPACE}/*
+            rm -rf ${WORKSPACE}/.*
+          """
         }
       }
     } // stage Erlfmt
@@ -729,7 +751,10 @@ pipeline {
         }
         cleanup {
           // UGH see https://issues.jenkins-ci.org/browse/JENKINS-41894
-          sh 'rm -rf ${WORKSPACE}/*'
+          sh """
+            rm -rf ${WORKSPACE}/*
+            rm -rf ${WORKSPACE}/.*
+          """
         }
       }
     } // stage Build Release Tarball

Reply via email to