Commit 3183f4d3 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: can now use parameter autorun

parent b33bd1f2
......@@ -775,6 +775,8 @@ def isSoftwareReleaseReady(config):
config_SR_folder(config)
if os.path.exists(os.path.join(config['runner_workdir'],
'softwareLink', software_name, '.completed')):
if config['autorun'] in TRUE_VALUES:
runSlapgridUntilSuccess(config, 'instance')
return "1"
else:
if isSoftwareRunning(config):
......@@ -782,6 +784,10 @@ def isSoftwareReleaseReady(config):
elif config['auto_deploy'] in TRUE_VALUES:
configNewSR(config, path)
runSoftwareWithLock(config)
config_SR_folder(config)
time.sleep(15)
if config['autorun'] in TRUE_VALUES:
runSlapgridUntilSuccess(config, 'instance')
return "2"
else:
return "0"
......
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