From 81893a08a979b28aaef7337b750a3f8f9e7a5aa6 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Fri, 18 Aug 2023 20:28:38 -0400 Subject: [PATCH] Print the memory allocated to maven on Jenkins and increase the memory available. --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 94c89a8c5d2..6e2df2e9a14 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ pipeline { steps { container('cdt') { timeout(activity: true, time: 30) { - withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) { + withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=85.0 -XX:+PrintFlagsFinal']) { sh 'MVN="/jipp/tools/apache-maven/latest/bin/mvn -Dmaven.repo.local=/home/jenkins/.m2/repository \ --settings /home/jenkins/.m2/settings.xml" ./releng/scripts/check_code_cleanliness_only.sh' } @@ -34,7 +34,7 @@ pipeline { steps { container('cdt') { timeout(activity: true, time: 20) { - withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) { + withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=85.0 -XX:+PrintFlagsFinal']) { withCredentials([string(credentialsId: 'gpg-passphrase', variable: 'KEYRING_PASSPHRASE')]) { sh '''/jipp/tools/apache-maven/latest/bin/mvn \ clean verify -B -V \