Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openairinterface-6g
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
OpenXG
openairinterface-6g
Commits
0d2212ca
Commit
0d2212ca
authored
Sep 24, 2025
by
Jaroslava Fiedlerova
Committed by
Robert Schmidt
Nov 05, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: Extend Custom_Script to accept arguments
parent
1dca20ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+2
-2
ci-scripts/main.py
ci-scripts/main.py
+2
-1
No files found.
ci-scripts/cls_oaicitest.py
View file @
0d2212ca
...
...
@@ -233,10 +233,10 @@ def Custom_Command(HTML, node, command):
HTML
.
CreateHtmlTestRowQueue
(
command
,
status
,
message
)
return
status
==
'OK'
or
status
==
'Warning'
def
Custom_Script
(
HTML
,
node
,
script
):
def
Custom_Script
(
HTML
,
node
,
script
,
args
):
logging
.
info
(
f"Executing custom script on
{
node
}
"
)
with
cls_cmd
.
getConnection
(
node
)
as
c
:
ret
=
c
.
exec_script
(
script
,
90
)
ret
=
c
.
exec_script
(
script
,
90
,
args
)
logging
.
debug
(
f"Custom_Script:
{
script
}
on node:
{
node
}
- return code
{
ret
.
returncode
}
, output:
\n
{
ret
.
stdout
}
"
)
status
=
'OK'
message
=
[
ret
.
stdout
]
...
...
ci-scripts/main.py
View file @
0d2212ca
...
...
@@ -328,9 +328,10 @@ def ExecuteActionWithParam(action, ctx):
elif
action
==
'Custom_Script'
:
node
=
test
.
findtext
(
'node'
)
script
=
test
.
findtext
(
'script'
)
args
=
test
.
findtext
(
'args'
)
# Allow referencing repository workspace path in XML via %%workspace%%
script
=
script
.
replace
(
"%%workspace%%"
,
CONTAINERS
.
eNBSourceCodePath
)
success
=
cls_oaicitest
.
Custom_Script
(
HTML
,
node
,
script
)
success
=
cls_oaicitest
.
Custom_Script
(
HTML
,
node
,
script
,
args
)
elif
action
==
'Pull_Cluster_Image'
:
tag_prefix
=
test
.
findtext
(
'tag_prefix'
)
or
""
...
...
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