Skip to content

Commit

Permalink
[Build] Specify options for the build JVM only in Jenkins pipeline
Browse files Browse the repository at this point in the history
The options where introduced for all builds of the p2 repo via
eclipse-equinox#464

Having it enabled can cause problems in GitHub workflows that are
sensitive to the printout.
  • Loading branch information
HannesWell committed Oct 12, 2024
1 parent e55cc8f commit 361b345
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .mvn/jvm.config

This file was deleted.

7 changes: 5 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
}
}
Expand Down

0 comments on commit 361b345

Please sign in to comment.