This is an automated email from the ASF dual-hosted git repository. Croway pushed a commit to branch camel-spring-boot-4.18.x in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
commit eb18021039662c5239d5805c719ebc7eaf4d64d7 Author: Aurélien Pupier <[email protected]> AuthorDate: Thu Sep 17 14:41:28 2026 +0200 CAMEL-24290 - avoid jenkins build bad interaction the Camel core build needs to clear the org/apache/camel local .m2 repository. In case, it happens during the spring build is happeining, both tof the build can fail: with this kind of error on Camel Spring Boot side: ``` org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project camel-itest-spring-boot-farjar: Could not resolve dependencies for project org.apache.camel.springboot:camel-itest-spring-boot-farjar:jar:4.23.0-SNAPSHOT dependency: org.apache.camel:camel-test-spring-junit6:jar:4.23.0-SNAPSHOT (test) Could not find artifact org.apache.camel:camel-test-spring-junit6:jar:4.23.0-SNAPSHOT ``` with this kind of error on Camel core side: ``` + [ -d /home/jenkins/.m2/repository/org/apache/camel ] + rm -rf /home/jenkins/.m2/repository/org/apache/camel rm: cannot remove '/home/jenkins/.m2/repository/org/apache/camel': Directory not empty ``` Signed-off-by: Aurélien Pupier <[email protected]> (cherry picked from commit ccd95746c7c121517cd8f6759fe91f0eff3c0144) --- Jenkinsfile.sb | 9 +++++++++ Jenkinsfile.sb.ppc64le | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/Jenkinsfile.sb b/Jenkinsfile.sb index d92999b1079..6db6c900d01 100644 --- a/Jenkinsfile.sb +++ b/Jenkinsfile.sb @@ -48,6 +48,12 @@ pipeline { logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10') ) disableConcurrentBuilds() + throttleJobProperty( + categories: ['camel'], + throttleEnabled: true, + throttleOption: 'category', + maxConcurrentPerNode: 1 + ) } parameters { @@ -66,6 +72,9 @@ pipeline { } stage('Build') { + options { + throttle(['camel']) + } steps { script { spring_boot_itests_result = sh script: "./mvnw $MAVEN_PARAMS -Dci.env.name=apache.org -Dmaven.test.failure.ignore=true clean install", returnStatus: true diff --git a/Jenkinsfile.sb.ppc64le b/Jenkinsfile.sb.ppc64le index 0b7d2f84049..1382fc48d48 100644 --- a/Jenkinsfile.sb.ppc64le +++ b/Jenkinsfile.sb.ppc64le @@ -48,6 +48,12 @@ pipeline { logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10') ) disableConcurrentBuilds() + throttleJobProperty( + categories: ['camel'], + throttleEnabled: true, + throttleOption: 'category', + maxConcurrentPerNode: 1 + ) } parameters { @@ -66,6 +72,9 @@ pipeline { } stage('Build') { + options { + throttle(['camel']) + } steps { script { spring_boot_itests_result = sh script: "./mvnw $MAVEN_PARAMS -Dci.env.name=apache.org -Dmaven.test.failure.ignore=true clean install", returnStatus: true
