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:
parent
c39c5de446
commit
45b3cd55b8
@ -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()
|
||||
|
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