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
Iliya Manolov
slapos.toolbox
Commits
fd90499b
Commit
fd90499b
authored
Dec 10, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: runSlapgridUntilSucces only run if build is ok
parent
d1584853
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
slapos/runner/utils.py
slapos/runner/utils.py
+5
-2
No files found.
slapos/runner/utils.py
View file @
fd90499b
...
@@ -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")
...
...
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