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-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new 5a984bf898 CAMEL-24318 - use Maven parallelization for compilation on 
Jenkins
5a984bf898 is described below

commit 5a984bf898469233f438debb7083f0012b7b0aaf
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Fri Jul 31 10:53:50 2026 +0200

    CAMEL-24318 - use Maven parallelization for compilation on Jenkins
    
    locally the deploy with `./mvnw -B -e -ntp -Ddeploy -Dquickly clean
    deploy 
-DaltDeploymentRepository=your_repo_id::default::file:/tmp/alt-repo-quarkus`
     takes 21 minutes
      and with the -T1C `./mvnw -T1C -B -e -ntp -Ddeploy -Dquickly clean
    deploy 
-DaltDeploymentRepository=your_repo_id::default::file:/tmp/alt-repo-quarkus`
    it takes 7 minutes
    On CI, the job is currently taking 3 hours. So expecting to at least
    divide by 2.
    
    for Sonar, use it only for the compilation part, not the sonarscanner
    which doesn't support the parallelization. tried on CI
    
https://ci-builds.apache.org/job/Camel/job/Camel%20Quarkus%20Sonarcloud%20Deploy/job/main/1144/
    , it allowed to go from 25 minutes to 14 minutes
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 Jenkinsfile            | 2 +-
 Jenkinsfile.sonarcloud | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index bfd81b929c..a4a5909a04 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -16,7 +16,7 @@
  */
 def AGENT_LABEL = env.AGENT_LABEL ?: 'ubuntu'
 def JDK_NAME = env.JDK_NAME ?: 'jdk_17_latest'
-def MAVEN_PARAMS = '-B -e -ntp'
+def MAVEN_PARAMS = '-B -e -ntp -T1C'
 
 pipeline {
 
diff --git a/Jenkinsfile.sonarcloud b/Jenkinsfile.sonarcloud
index 17946431c1..62d57a97bb 100644
--- a/Jenkinsfile.sonarcloud
+++ b/Jenkinsfile.sonarcloud
@@ -40,7 +40,7 @@ pipeline {
                 MAVEN_OPTS = "-Xmx4600m"
             }
             steps {
-                sh "./mvnw ${MAVEN_PARAMS} -Dquickly clean install"
+                sh "./mvnw ${MAVEN_PARAMS} -T1C -Dquickly clean install"
             }
         }
 

Reply via email to