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.
This commit is contained in:
Johannes Schnatterer
2018-07-12 11:01:37 +02:00
parent 461645ede9
commit f8b8400dce

6
Jenkinsfile vendored
View File

@@ -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