From 0c25ee8a55804adc56c5ff4d1ba05f3c4940a4f2 Mon Sep 17 00:00:00 2001 From: czoido Date: Tue, 8 Mar 2022 17:16:29 +0100 Subject: [PATCH] fix ci --- .ci/Jenkinsfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index fc20ca9c..64899209 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -51,8 +51,13 @@ List getBranchesInstalls() { def runExample(Map ctxt, String example) { for (extension in ctxt.extensions) { if (example.contains(extension)) { - def command = example.contains(".py") ? "python ${example}" : "${example}" - ctxt.shFunction(command) + example = example.replace("\\","/") + split_path = example.split('/') + String script = split_path[split_path.length-1] + String path = example - script + script = isUnix() ? "./${script}" : "${script}" + String command = script.contains(".py") ? "python ${script}" : "${script}" + ctxt.shFunction("cd ${path} && ${command}") } } }