Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos.toolbox
Commits
097a3015
Commit
097a3015
authored
Nov 19, 2019
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: /isSRReady check all Software Releases
parent
b5861179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
slapos/runner/utils.py
slapos/runner/utils.py
+13
-10
No files found.
slapos/runner/utils.py
View file @
097a3015
...
@@ -893,15 +893,18 @@ def readParameters(path):
...
@@ -893,15 +893,18 @@ def readParameters(path):
else:
else:
return "No such file or directory: %s" % path
return "No such file or directory: %s" % path
def isSoftwareReleaseCompleted(config):
def areAllSoftwareReleaseCompleted(config):
software_name = getSoftwareReleaseName(config)
result_list = []
if software_name is None:
for software_release_uri in self.getAvailableSoftwareReleaseURIList(config):
return False
software_release_path = os.path.join(
elif os.path.exists(os.path.join(config['
software_link
'],
config['
software_root
'],
software_name, '
.
completed
')):
md5digest(software_release_uri)
return True
)
else:
if os.path.exists(os.path.join(software_release_path, '
.
completed
')):
return False
result_list.append(True)
else:
resultd_list.append(False)
return all(result_list)
def isSoftwareReleaseReady(config):
def isSoftwareReleaseReady(config):
"""Return 1 if the Software Release has
"""Return 1 if the Software Release has
...
@@ -913,7 +916,7 @@ def isSoftwareReleaseReady(config):
...
@@ -913,7 +916,7 @@ def isSoftwareReleaseReady(config):
if not ( os.path.exists(project) and (auto_run or auto_deploy) ):
if not ( os.path.exists(project) and (auto_run or auto_deploy) ):
return "0"
return "0"
updateInstanceParameter(config)
updateInstanceParameter(config)
if
is
SoftwareReleaseCompleted(config):
if
areAll
SoftwareReleaseCompleted(config):
if auto_run:
if auto_run:
runSlapgridUntilSuccess(config, '
instance
')
runSlapgridUntilSuccess(config, '
instance
')
return "1"
return "1"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment