From aa5e0435a3ba1980440146c382fb6cecc7d689c1 Mon Sep 17 00:00:00 2001 From: "AO Industries, Inc" Date: Tue, 19 Sep 2023 10:38:29 +0000 Subject: [PATCH] Using native Git instead of JGit for better performance Not enabled in pom.xml for maximum portability. Instead, enabled in Jenkins and developer scripts. --- Jenkinsfile | 2 +- book/Jenkinsfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 001553c..7b67f86 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -469,7 +469,7 @@ if (!binding.hasVariable('failureEmailTo')) { } // Common settings -def mvnCommon = "-Dstyle.color=always -DrequireLastBuild=${params.requireLastBuild} -N -U -Pjenkins,POST-SNAPSHOT${extraProfiles.isEmpty() ? '' : (',' + extraProfiles.join(','))}" +def mvnCommon = "-Dstyle.color=always -Dmaven.gitcommitid.nativegit=true -DrequireLastBuild=${params.requireLastBuild} -N -U -Pjenkins,POST-SNAPSHOT${extraProfiles.isEmpty() ? '' : (',' + extraProfiles.join(','))}" def buildPhases = 'clean process-test-classes' // Determine nice command prefix or empty string for none diff --git a/book/Jenkinsfile b/book/Jenkinsfile index a0e8824..c0231c5 100644 --- a/book/Jenkinsfile +++ b/book/Jenkinsfile @@ -475,7 +475,7 @@ if (!binding.hasVariable('failureEmailTo')) { } // Common settings -def mvnCommon = "-Dstyle.color=always -DrequireLastBuild=${params.requireLastBuild} -N -U -Pjenkins,POST-SNAPSHOT${extraProfiles.isEmpty() ? '' : (',' + extraProfiles.join(','))}" +def mvnCommon = "-Dstyle.color=always -Dmaven.gitcommitid.nativegit=true -DrequireLastBuild=${params.requireLastBuild} -N -U -Pjenkins,POST-SNAPSHOT${extraProfiles.isEmpty() ? '' : (',' + extraProfiles.join(','))}" def buildPhases = 'clean process-test-classes' // Determine nice command prefix or empty string for none