From 3663f36c0d810e21f7444deb7f2fc744e5c054f1 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 0ea9fff..0f85b25 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -471,7 +471,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 484e474..23e78a8 100644 --- a/book/Jenkinsfile +++ b/book/Jenkinsfile @@ -479,7 +479,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