maven-deploy: don't require id

The id element is eg. not needed for file deployment so don't make it
mandatory.

Change-Id: Ide83b18cbab6010033c3bd8e8264595d1d2d5fa2
This commit is contained in:
Guido Günther 2014-01-10 15:43:44 +01:00
parent c39c5de446
commit 45b3cd55b8
3 changed files with 16 additions and 1 deletions

View File

@ -2002,7 +2002,8 @@ def maven_deploy(parser, xml_parent, data):
"""
p = XML.SubElement(xml_parent, 'hudson.maven.RedeployPublisher')
XML.SubElement(p, 'id').text = data['id']
if 'id' in data:
XML.SubElement(p, 'id').text = data['id']
XML.SubElement(p, 'url').text = data['url']
XML.SubElement(p, 'uniqueVersion').text = str(
data.get('unique-version', True)).lower()

View File

@ -0,0 +1,10 @@
<?xml version="1.0" ?>
<project>
<publishers>
<hudson.maven.RedeployPublisher>
<url>file:///path/to/repo</url>
<uniqueVersion>true</uniqueVersion>
<evenIfUnstable>false</evenIfUnstable>
</hudson.maven.RedeployPublisher>
</publishers>
</project>

View File

@ -0,0 +1,4 @@
publishers:
- maven-deploy:
url: file:///path/to/repo