From f8b8400dce200b3e869a554de248ce2ea6a6ba42 Mon Sep 17 00:00:00 2001 From: Johannes Schnatterer Date: Thu, 12 Jul 2018 11:01:37 +0200 Subject: [PATCH] Jenkins: Remove maven opts. Randomly failing builds (during JavaDoc or SonarQube) were more likely to be caused by using "small" instances by default on cloudbees. --- Jenkinsfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8467ce5804..2cfa04cbb0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,17 +11,13 @@ node() { // No specific label disableConcurrentBuilds() ]) - String defaultEmailRecipients = env.EMAIL_SCM_RECIPIENTS - catchError { Maven mvn = new MavenWrapper(this) // Maven build specified it must be 1.8.0-101 or newer def javaHome = tool 'JDK-1.8.0-101+' - withEnv(["JAVA_HOME=${javaHome}", "PATH=${env.JAVA_HOME}/bin:${env.PATH}", - // Give Maven enough memory to do SonarQube analysis - "MAVEN_OPTS=-Xmx1g"]) { + withEnv(["JAVA_HOME=${javaHome}", "PATH=${env.JAVA_HOME}/bin:${env.PATH}"]) { stage('Checkout') { checkout scm