Merge "maven-deploy: don't require id"

This commit is contained in:
Jenkins 2014-01-16 09:41:13 +00:00 committed by Gerrit Code Review
commit 777a29aa8a
3 changed files with 16 additions and 1 deletions

View File

@ -2022,6 +2022,7 @@ def maven_deploy(parser, xml_parent, data):
"""
p = XML.SubElement(xml_parent, 'hudson.maven.RedeployPublisher')
if 'id' in data:
XML.SubElement(p, 'id').text = data['id']
XML.SubElement(p, 'url').text = data['url']
XML.SubElement(p, 'uniqueVersion').text = str(

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