From 9471d95a9ae33fe3560f33d98ff5b79825c173d8 Mon Sep 17 00:00:00 2001 From: "SLW\\ARNAUA" Date: Thu, 9 Mar 2023 14:27:44 +0100 Subject: [PATCH] modified --- Jenkinsfile | 2 +- generate.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5fc65c9..6ff3651 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -112,7 +112,7 @@ stage('Execute Script') { steps { dir("/opt/workspace/coco_apm_slo_yaml2tf/") { - sh "python3 generate.py /opt/workspace/shared_configuration/${params.INPUTFOLDER} /opt/workspace/coco_terraform_config/" + sh "python3 generate.py ../shared_configuration/${params.INPUTFOLDER} ../coco_terraform_config/" } //Only required once CN is not reachable from EMEA //loopEnvironments(environments) diff --git a/generate.py b/generate.py index 928c7a1..c41448b 100644 --- a/generate.py +++ b/generate.py @@ -117,14 +117,15 @@ if __name__ == "__main__": # pre-initialization get current working directory cwd = os.getcwd() - print("Script is running...") - print("Check arguments:",sys.argv) if len(sys.argv) != 3: print(".\generate.py ") print("Example: .\generate.py .\DE-3\\ .\test\\") print("Example: .\generate.py .\DE-3\,.\DE-4\,...") sys.exit() + print("Script is running...") + print("Check arguments:",sys.argv) + # TESTING: Unocmment this if you want to test it # for folderName,businessLine in FOLDERS.items(): # businessLinePath = os.path.join(cwd,businessLine)