From 0ba9a9758b302816cd35a9ce62d7839351d86055 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Mon, 13 Oct 2025 09:43:44 +0200 Subject: [PATCH] CI: expand %%workspace%% token - main.py: replace %%workspace%% with CONTAINERS.eNBSourceCodePath in Custom_Command and Custom_Script Co-authored-by: Guido Casati --- ci-scripts/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci-scripts/main.py b/ci-scripts/main.py index 3e7be396cc..ac4ac2c3be 100644 --- a/ci-scripts/main.py +++ b/ci-scripts/main.py @@ -321,11 +321,15 @@ def ExecuteActionWithParam(action, ctx): # Change all execution targets to localhost node = 'localhost' 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) elif action == 'Custom_Script': node = test.findtext('node') 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) elif action == 'Pull_Cluster_Image':