Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
lizhongxiao
OpenXG UE
Commits
b09cf103
Commit
b09cf103
authored
Jan 14, 2022
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ci): hot fix, to clean container volumes
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
289b0b32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+9
-0
No files found.
ci-scripts/cls_containerize.py
View file @
b09cf103
...
@@ -342,6 +342,8 @@ class Containerize():
...
@@ -342,6 +342,8 @@ class Containerize():
if
self
.
ranAllowMerge
and
forceBaseImageBuild
:
if
self
.
ranAllowMerge
and
forceBaseImageBuild
:
mySSH
.
command
(
self
.
cli
+
' image rm '
+
baseImage
+
':'
+
baseTag
+
' || true'
,
'\$'
,
30
)
mySSH
.
command
(
self
.
cli
+
' image rm '
+
baseImage
+
':'
+
baseTag
+
' || true'
,
'\$'
,
30
)
mySSH
.
command
(
self
.
cli
+
' image rm ran-build:'
+
imageTag
+
' || true'
,
'\$'
,
5
)
mySSH
.
command
(
self
.
cli
+
' image rm ran-build:'
+
imageTag
+
' || true'
,
'\$'
,
5
)
# Cleaning any created tmp volume
mySSH
.
command
(
self
.
cli
+
' volume prune --force || true'
,
'\$'
,
15
)
mySSH
.
close
()
mySSH
.
close
()
ZipFile
(
'build_log_'
+
self
.
testCase_id
+
'.zip'
).
extractall
(
'.'
)
ZipFile
(
'build_log_'
+
self
.
testCase_id
+
'.zip'
).
extractall
(
'.'
)
...
@@ -595,6 +597,8 @@ class Containerize():
...
@@ -595,6 +597,8 @@ class Containerize():
mySSH
.
command
(
'docker rm -f '
+
containerName
,
'\$'
,
30
)
mySSH
.
command
(
'docker rm -f '
+
containerName
,
'\$'
,
30
)
# Forcing the down now to remove the networks and any artifacts
# Forcing the down now to remove the networks and any artifacts
mySSH
.
command
(
'docker-compose --file ci-docker-compose.yml down'
,
'\$'
,
5
)
mySSH
.
command
(
'docker-compose --file ci-docker-compose.yml down'
,
'\$'
,
5
)
# Cleaning any created tmp volume
mySSH
.
command
(
'docker volume prune --force || true'
,
'\$'
,
20
)
mySSH
.
close
()
mySSH
.
close
()
...
@@ -754,6 +758,11 @@ class Containerize():
...
@@ -754,6 +758,11 @@ class Containerize():
logging
.
error
(
'
\u001B
[1m Undeploying OAI Object(s) FAILED
\u001B
[0m'
)
logging
.
error
(
'
\u001B
[1m Undeploying OAI Object(s) FAILED
\u001B
[0m'
)
return
return
# Cleaning any created tmp volume
cmd
=
'docker volume prune --force || true'
logging
.
debug
(
cmd
)
deployStatus
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
stderr
=
subprocess
.
STDOUT
,
universal_newlines
=
True
,
timeout
=
100
)
HTML
.
CreateHtmlTestRow
(
'n/a'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
HTML
.
CreateHtmlTestRow
(
'n/a'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
logging
.
info
(
'
\u001B
[1m Undeploying OAI Object(s) PASS
\u001B
[0m'
)
logging
.
info
(
'
\u001B
[1m Undeploying OAI Object(s) PASS
\u001B
[0m'
)
...
...
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