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
8352f71a
Commit
8352f71a
authored
Mar 13, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show output of CustomCommand if it would make the pipeline fail
parent
31e6b581
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
ci-scripts/ran.py
ci-scripts/ran.py
+6
-4
No files found.
ci-scripts/ran.py
View file @
8352f71a
...
...
@@ -265,17 +265,19 @@ class RANManagement():
cmd
.
close
()
logging
.
debug
(
f'CustomCommand:
{
self
.
command
}
returnCode:
{
ret
.
returncode
}
'
)
status
=
'OK'
message
=
''
message
=
[]
if
ret
.
returncode
!=
0
and
not
self
.
command_fail
:
message
=
ret
.
stdout
message
=
[
ret
.
stdout
]
logging
.
warning
(
f'CustomCommand output:
{
message
}
'
)
status
=
'Warning'
if
self
.
command_fail
:
# important command since it would make the pipeline fail, so show output in HTML
message
=
[
ret
.
stdout
]
if
ret
.
returncode
!=
0
and
self
.
command_fail
:
message
=
ret
.
stdout
message
=
[
ret
.
stdout
]
logging
.
error
(
f'CustomCommand failed: output:
{
message
}
'
)
status
=
'KO'
self
.
prematureExit
=
True
HTML
.
CreateHtmlTestRowQueue
(
self
.
command
,
status
,
[
message
]
)
HTML
.
CreateHtmlTestRowQueue
(
self
.
command
,
status
,
message
)
def
checkBuildeNB
(
self
,
lIpAddr
,
lUserName
,
lPassWord
,
lSourcePath
,
testcaseId
,
HTML
):
HTML
.
testCase_id
=
testcaseId
...
...
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