From 361b3453cadb46351c152d176f17aff13703764a Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Sat, 12 Oct 2024 13:58:41 +0200 Subject: [PATCH] [Build] Specify options for the build JVM only in Jenkins pipeline The options where introduced for all builds of the p2 repo via https://github.com/eclipse-equinox/p2/pull/464 Having it enabled can cause problems in GitHub workflows that are sensitive to the printout. --- .mvn/jvm.config | 2 -- Jenkinsfile | 7 +++++-- 2 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 .mvn/jvm.config diff --git a/.mvn/jvm.config b/.mvn/jvm.config deleted file mode 100644 index fe0f88cf4d..0000000000 --- a/.mvn/jvm.config +++ /dev/null @@ -1,2 +0,0 @@ --XX:+PrintFlagsFinal --Xmx2g \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 7459faff2f..085b78b436 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,15 +14,18 @@ pipeline { } stages { stage('Build') { + environment { + MAVEN_OPTS ='-XX:+PrintFlagsFinal -Xmx2g' + } steps { - wrap([$class: 'Xvnc', useXauthority: true]) { + xvnc(useXauthority: true) { sh """ mvn clean verify --batch-mode --fail-at-end -Dmaven.repo.local=$WORKSPACE/.m2/repository \ -Pbree-libs -Papi-check -Pjavadoc \ -Dcompare-version-with-baselines.skip=false \ -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true \ -Dproject.build.sourceEncoding=UTF-8 \ - -T1C + -T 1C """ } }