[JIRA] (JENKINS-60538) <jvmOptions/> is always generated in Maven build step

2 views
Skip to first unread message

pjanouse@redhat.com (JIRA)

unread,
Dec 19, 2019, 5:18:02 AM12/19/19
to jenkinsc...@googlegroups.com
Pavel Janoušek created an issue
 
Jenkins / Bug JENKINS-60538
<jvmOptions/> is always generated in Maven build step
Issue Type: Bug Bug
Assignee: Daniel Spilker
Components: job-dsl-plugin
Created: 2019-12-19 10:17
Priority: Minor Minor
Reporter: Pavel Janoušek

job-dsl generates empty <jvmOptions/> tag in }}config.xml}} even there isn't any reference in source like:

job('example') {
    steps {
        maven('verify')
    }
}

This empty <jvmOptions/> tag causes an issue later - in the core there is a test only if jvmOptions is null but not empty - in such a case MAVEN_OPTS is replaced.

In our real use case we need to prefer IPv6 network stack and DNS addresses instead of IPv4, JAVA_OPTS and MAVEN_OPTS environment variables are set correctly however the job is failing on pure IPv6 environment.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages