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

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


The following commit(s) were added to refs/heads/main by this push:
     new 359d953862 [NO-JIRA] Jenkinsfile: Update with parallelTests flag
359d953862 is described below

commit 359d953862b7b82ce75458e2bdd508ae6fb1fc42
Author: Matt Pavlovich <[email protected]>
AuthorDate: Wed Dec 10 12:20:12 2025 -0600

    [NO-JIRA] Jenkinsfile: Update with parallelTests flag
---
 Jenkinsfile | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 1d786fd135..94a8c7a772 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -45,6 +45,7 @@ pipeline {
         choice(name: 'nodeLabel', choices: ['ubuntu', 's390x', 'arm', 
'Windows']) 
         choice(name: 'jdkVersion', choices: ['jdk_17_latest', 'jdk_21_latest', 
'jdk_24_latest', 'jdk_17_latest_windows', 'jdk_21_latest_windows', 
'jdk_24_latest_windows'])
         booleanParam(name: 'deployEnabled', defaultValue: false)
+        booleanParam(name: 'parallelTestsEnabled', defaultValue: true)
         booleanParam(name: 'sonarEnabled', defaultValue: false)
         booleanParam(name: 'testsEnabled', defaultValue: true)
     }
@@ -126,12 +127,20 @@ pipeline {
             }
             when { expression { return params.testsEnabled } }
             steps {
-                echo 'Running tests'
                 sh 'java -version'
                 sh 'mvn -version'
+
                 // all tests is very very long (10 hours on Apache Jenkins)
                 // sh 'mvn -B -e test -pl activemq-unit-tests 
-Dactivemq.tests=all'
-                sh 'mvn -B -e -fae test -Dsurefire.rerunFailingTestsCount=3'
+                script {
+                    if (params.parallelTestsEnabled == 'true') {
+                        sh 'echo "Running parallel-tests ..."'
+                        sh 'mvn -B -e -fae -Pparallel-tests test 
-Dsurefire.rerunFailingTestsCount=3'
+                    } else {
+                        sh 'echo "Running tests ..."'
+                        sh 'mvn -B -e -fae test 
-Dsurefire.rerunFailingTestsCount=3'
+                    }
+                }
             }
             post {
                 always {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to