Fix issue that cause JCloud instance to be set
Fix an issue where JCloud instances creation was being set in jjb despite only passing single-use option. Change-Id: I5de2279cdd53f1c092f950783d85c900b39e0fe9 Signed-off-by: Kien Ha <kienha9922@gmail.com>
This commit is contained in:
parent
80aa526616
commit
5335f4eeea
|
@ -1089,11 +1089,10 @@ def jclouds(parser, xml_parent, data):
|
|||
count: 2
|
||||
stop-on-terminate: False
|
||||
"""
|
||||
buildWrapper = XML.SubElement(xml_parent,
|
||||
'jenkins.plugins.jclouds.compute.'
|
||||
'JCloudsBuildWrapper')
|
||||
instances = XML.SubElement(buildWrapper, 'instancesToRun')
|
||||
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 template, params in foo.items():
|
||||
instance = XML.SubElement(instances,
|
||||
|
|
Loading…
Reference in New Issue