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

apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 07f0cdaff7fb Avoid jenkins job failure when local .m2 is empty
07f0cdaff7fb is described below

commit 07f0cdaff7fb0d40062d0e88fe8ca79761c09aff
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Wed Jul 8 15:50:42 2026 +0200

    Avoid jenkins job failure when local .m2 is empty
    
    Due to disk space constraints, sometimes the .m2/repository is cleaned
    up on Jenkins nodes. So need to be able to work also when there is no
    directory available.
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index ee19c59adbb0..034d50d2b9e5 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -132,7 +132,7 @@ pipeline {
                     stage('Clean workspace') {
                         steps {
                             cleanWs()
-                            sh 'rm -rvf 
/home/jenkins/.m2/repository/org/apache/camel'
+                            sh 'if [ -d 
/home/jenkins/.m2/repository/org/apache/camel ]; then rm -rf 
/home/jenkins/.m2/repository/org/apache/camel; fi'
                             script {
                                 // Use full clone for JDK 21 on ubuntu-avx 
(needed for Sonar analysis)
                                 // Use shallow clone for all other combinations

Reply via email to