mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-26 08:06:09 +01:00
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:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user