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