Maven: Fix XML markup.

The generated markup contains a node "root_module", which is not
recognized by Jenkins:

  WARNING: Skipping a non-existent field root_module
  com.thoughtworks.xstream.converters.reflection.MissingFieldException: No
  field 'root_module' found in class 'hudson.maven.MavenModuleSet'

The correct spelling is rootModule.

Change-Id: I0cae2c3358f2664783c97e245b064453a05bc988
Reviewed-on: https://review.openstack.org/26052
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
This commit is contained in:
Arnaud Fabre 2013-04-04 01:19:28 +02:00 committed by Jenkins
parent 8609576985
commit 54b6bcc44d

View File

@ -50,7 +50,7 @@ class Maven(jenkins_jobs.modules.base.Base):
if 'maven' not in data: if 'maven' not in data:
return None return None
xml_parent = XML.Element('maven2-moduleset') xml_parent = XML.Element('maven2-moduleset')
root_module = XML.SubElement(xml_parent, 'root_module') root_module = XML.SubElement(xml_parent, 'rootModule')
XML.SubElement(root_module, 'groupId').text = \ XML.SubElement(root_module, 'groupId').text = \
data['maven']['root-module']['group-id'] data['maven']['root-module']['group-id']
XML.SubElement(root_module, 'artifactId').text = \ XML.SubElement(root_module, 'artifactId').text = \