Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
zzha zzha
OpenXG-RAN
Commits
1a031797
Commit
1a031797
authored
Jan 24, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use return value of Build_Image/Build_Proxy to decide if abort instead of sysexit
parent
163af6b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+4
-3
ci-scripts/main.py
ci-scripts/main.py
+6
-2
No files found.
ci-scripts/cls_containerize.py
View file @
1a031797
...
...
@@ -444,7 +444,7 @@ class Containerize():
logging
.
error
(
'
\u001B
[1m Building OAI Images Failed
\u001B
[0m'
)
HTML
.
CreateHtmlTestRow
(
self
.
imageKind
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
)
HTML
.
CreateHtmlTabFooter
(
False
)
sys
.
exit
(
1
)
return
False
else
:
result
=
re
.
search
(
'Size *= *(?P<size>[0-9\-]+) *bytes'
,
cmd
.
getBefore
())
if
result
is
not
None
:
...
...
@@ -520,12 +520,13 @@ class Containerize():
logging
.
info
(
'
\u001B
[1m Building OAI Image(s) Pass
\u001B
[0m'
)
HTML
.
CreateHtmlTestRow
(
self
.
imageKind
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
HTML
.
CreateHtmlNextTabHeaderTestRow
(
collectInfo
,
allImagesSize
)
return
True
else
:
logging
.
error
(
'
\u001B
[1m Building OAI Images Failed
\u001B
[0m'
)
HTML
.
CreateHtmlTestRow
(
self
.
imageKind
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
)
HTML
.
CreateHtmlNextTabHeaderTestRow
(
collectInfo
,
allImagesSize
)
HTML
.
CreateHtmlTabFooter
(
False
)
sys
.
exit
(
1
)
return
False
def
BuildProxy
(
self
,
HTML
):
if
self
.
ranRepository
==
''
or
self
.
ranBranch
==
''
or
self
.
ranCommitID
==
''
:
...
...
@@ -608,7 +609,7 @@ class Containerize():
mySSH
.
close
()
HTML
.
CreateHtmlTestRow
(
'commit '
+
tag
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
)
HTML
.
CreateHtmlTabFooter
(
False
)
sys
.
exit
(
1
)
return
False
else
:
logging
.
debug
(
'L2sim proxy image for tag '
+
tag
+
' already exists, skipping build'
)
...
...
ci-scripts/main.py
View file @
1a031797
...
...
@@ -830,9 +830,13 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
if
not
CLUSTER
.
BuildClusterImage
(
HTML
):
RAN
.
prematureExit
=
True
elif
action
==
'Build_Image'
:
CONTAINERS
.
BuildImage
(
HTML
)
success
=
CONTAINERS
.
BuildImage
(
HTML
)
if
not
success
:
RAN
.
prematureExit
=
True
elif
action
==
'Build_Proxy'
:
CONTAINERS
.
BuildProxy
(
HTML
)
success
=
CONTAINERS
.
BuildProxy
(
HTML
)
if
not
success
:
RAN
.
prematureExit
=
True
elif
action
==
'Push_Local_Registry'
:
success
=
CONTAINERS
.
Push_Image_to_Local_Registry
(
HTML
)
if
not
success
:
...
...
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