CI: expand %%workspace%% token
- main.py: replace %%workspace%% with CONTAINERS.eNBSourceCodePath in Custom_Command and Custom_Script Co-authored-by: Guido Casati <hello@guidocasati.com>
This commit is contained in:
co-authored by
Guido Casati
parent
f93a71977f
commit
0ba9a9758b
@@ -321,11 +321,15 @@ def ExecuteActionWithParam(action, ctx):
|
|||||||
# Change all execution targets to localhost
|
# Change all execution targets to localhost
|
||||||
node = 'localhost'
|
node = 'localhost'
|
||||||
command = test.findtext('command')
|
command = test.findtext('command')
|
||||||
|
# Allow referencing repository workspace path in XML via %%workspace%%
|
||||||
|
command = command.replace("%%workspace%%", CONTAINERS.eNBSourceCodePath)
|
||||||
success = cls_oaicitest.Custom_Command(HTML, node, command)
|
success = cls_oaicitest.Custom_Command(HTML, node, command)
|
||||||
|
|
||||||
elif action == 'Custom_Script':
|
elif action == 'Custom_Script':
|
||||||
node = test.findtext('node')
|
node = test.findtext('node')
|
||||||
script = test.findtext('script')
|
script = test.findtext('script')
|
||||||
|
# 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)
|
||||||
|
|
||||||
elif action == 'Pull_Cluster_Image':
|
elif action == 'Pull_Cluster_Image':
|
||||||
|
|||||||
Reference in New Issue
Block a user