Merge "maven-deploy: don't require id"
This commit is contained in:
commit
777a29aa8a
@ -2022,6 +2022,7 @@ def maven_deploy(parser, xml_parent, data):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
p = XML.SubElement(xml_parent, 'hudson.maven.RedeployPublisher')
|
p = XML.SubElement(xml_parent, 'hudson.maven.RedeployPublisher')
|
||||||
|
if 'id' in data:
|
||||||
XML.SubElement(p, 'id').text = data['id']
|
XML.SubElement(p, 'id').text = data['id']
|
||||||
XML.SubElement(p, 'url').text = data['url']
|
XML.SubElement(p, 'url').text = data['url']
|
||||||
XML.SubElement(p, 'uniqueVersion').text = str(
|
XML.SubElement(p, 'uniqueVersion').text = str(
|
||||||
|
10
tests/publishers/fixtures/mavendeploy001.xml
Normal file
10
tests/publishers/fixtures/mavendeploy001.xml
Normal 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>
|
4
tests/publishers/fixtures/mavendeploy001.yaml
Normal file
4
tests/publishers/fixtures/mavendeploy001.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
publishers:
|
||||||
|
- maven-deploy:
|
||||||
|
url: file:///path/to/repo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user