From 9f58ccea238ffa75d0f7f5f79897c68f51d9a1a4 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Tue, 12 Sep 2023 18:22:14 -0600 Subject: [PATCH] Allow developer control of parallel testing Move the definition of parallel testing from the Maven pom file into the Jenkinsfile so that ci.jenkins.io continues to run the tests with one process per available core, while developers are allowed to configure the amount of parallel testing based on the configuration and use of their computer. Developers can adjust parallel execution by passing a command line argument to Maven like this: mvn clean -DforkCount=1C verify Developers can define a Maven profile that sets the forkCount in their ~/.m2/settings.xml like this: faster true .45C With that entry in the settings.xml file, then 0.45C will be used for: mvn clean verify --- Jenkinsfile | 1 + SUPPORTED-FORMATS.md | 2 +- pom.xml | 9 --------- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e764f28a9..1b3ba0a74 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,7 @@ def configurations = [ def params = [ failFast: false, + forkCount: '1C', configurations: configurations, checkstyle: [qualityGates: [[threshold: 1, type: 'NEW', unstable: true]]], pmd: [qualityGates: [[threshold: 1, type: 'NEW', unstable: true]]], diff --git a/SUPPORTED-FORMATS.md b/SUPPORTED-FORMATS.md index 5fcb00f1d..a50d19731 100644 --- a/SUPPORTED-FORMATS.md +++ b/SUPPORTED-FORMATS.md @@ -1,4 +1,4 @@ - + # Supported Report Formats The static analysis model supports the following report formats. diff --git a/pom.xml b/pom.xml index 8a9b6aec0..d9dc3f431 100644 --- a/pom.xml +++ b/pom.xml @@ -476,15 +476,6 @@ - - org.apache.maven.plugins - maven-surefire-plugin - - all - true - 1C - -