[JIRA] (JENKINS-61246) withMaven is not picking mavenOpts: '-Xmx2048m'

2 views
Skip to first unread message

sadguruchikkam8064@gmail.com (JIRA)

unread,
Feb 26, 2020, 11:47:03 PM2/26/20
to jenkinsc...@googlegroups.com
Sadguru Chikkam created an issue
 
Jenkins / Bug JENKINS-61246
withMaven is not picking mavenOpts: '-Xmx2048m'
Issue Type: Bug Bug
Assignee: Alvaro Lobato
Components: pipeline-maven-plugin
Created: 2020-02-27 04:46
Priority: Major Major
Reporter: Sadguru Chikkam

I am getting an error "java.lang.OutOfMemoryError: Java heap space" when i am trying to build my code.

And I am trying to pass JAVA_OPTIONS as below but for some reason it is not being passed.
stage('Build') { steps { script { withMaven(mavenOpts: '-Xmx2048m')

{ sh("mvn package -DskipTests=true") }

}
}
}
Could see in the logs as below:
[withMaven] Options: []
[withMaven] Available options:
[withMaven] using JDK installation provided by the build agent
$ /bin/sh -c "which mvn"
[withMaven] using Maven installation provided by the build agent with executable /apps/pcehr/tools/apache-maven-3.3.9/bin/mvn
[Pipeline] {
 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

sadguruchikkam8064@gmail.com (JIRA)

unread,
Feb 26, 2020, 11:49:03 PM2/26/20
to jenkinsc...@googlegroups.com
Sadguru Chikkam commented on Bug JENKINS-61246
 
Re: withMaven is not picking mavenOpts: '-Xmx2048m'

mavenOpts: '-Xmx2048m' is not being passed through withMaven

Reply all
Reply to author
Forward
0 new messages