Commit fd90499b authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: runSlapgridUntilSucces only run if build is ok

parent d1584853
...@@ -830,10 +830,13 @@ def runSlapgridUntilSuccess(config, step): ...@@ -830,10 +830,13 @@ def runSlapgridUntilSuccess(config, step):
return return
# XXX-Nico runSoftwareWithLock can return 0 or False (0==False) # XXX-Nico runSoftwareWithLock can return 0 or False (0==False)
while max_tries > 0: while max_tries > 0:
if runSlapgridWithLock(config): slapgrid = runSlapgridWithLock(config)
if slapgrid:
break break
max_tries -= 1 max_tries -= 1
if step == "software" and RUN_INSTANCE: # run instance only if we are deploying the software release,
# if it is defined so, and sr is correctly deployed
if step == "software" and RUN_INSTANCE and slapgrid:
runSlapgridUntilSuccess(config, "instance") runSlapgridUntilSuccess(config, "instance")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment