Merge "Fix issue that cause JCloud instance to be set"
This commit is contained in:
commit
ef02e0ce40
@ -1089,11 +1089,10 @@ def jclouds(parser, xml_parent, data):
|
|||||||
count: 2
|
count: 2
|
||||||
stop-on-terminate: False
|
stop-on-terminate: False
|
||||||
"""
|
"""
|
||||||
buildWrapper = XML.SubElement(xml_parent,
|
|
||||||
'jenkins.plugins.jclouds.compute.'
|
|
||||||
'JCloudsBuildWrapper')
|
|
||||||
instances = XML.SubElement(buildWrapper, 'instancesToRun')
|
|
||||||
if 'instances' in data:
|
if 'instances' in data:
|
||||||
|
buildWrapper = XML.SubElement(
|
||||||
|
xml_parent, 'jenkins.plugins.jclouds.compute.JCloudsBuildWrapper')
|
||||||
|
instances = XML.SubElement(buildWrapper, 'instancesToRun')
|
||||||
for foo in data['instances']:
|
for foo in data['instances']:
|
||||||
for template, params in foo.items():
|
for template, params in foo.items():
|
||||||
instance = XML.SubElement(instances,
|
instance = XML.SubElement(instances,
|
||||||
|
Loading…
Reference in New Issue
Block a user