From af006ae5d411b499176b798c625f597e42ee4ca1 Mon Sep 17 00:00:00 2001 From: "SLW\\ARNAUA" Date: Thu, 9 Mar 2023 13:55:22 +0100 Subject: [PATCH] modified --- Jenkinsfile | 4 ++-- generate.py | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f45385b..5fc65c9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,7 +56,7 @@ } stages { - stage('Checkout Repositories'){ + stage('Fetch Repositories'){ steps { parallel 'Checkout Repositories': { dir("/opt/workspace/shared_configuration/") { @@ -73,7 +73,7 @@ } - stage('Checkout Branch') { + stage('Checkout New Branch') { steps{ script { def now = new Date() diff --git a/generate.py b/generate.py index b226c8f..cf2772c 100644 --- a/generate.py +++ b/generate.py @@ -116,8 +116,9 @@ if __name__ == "__main__": # pre-initialization get current working directory cwd = os.getcwd() - print(sys.argv) + print("Script is running...") + print("Check arguments:",sys.argv) if len(sys.argv) != 3: print(".\generate.py ") print("Example: .\generate.py .\DE-3\\ .\test\\") @@ -135,7 +136,7 @@ if __name__ == "__main__": for arg in arguments: pathname = os.path.join(cwd,arg) # return path of slo config files - configFiles = glob.glob(pathname=pathname + '\\**\\*.yaml', + configFiles = glob.glob(pathname=pathname + '\\**\\[TP_]*.yaml', # root_dir=os.path.join(cwd,os.path.basename(arg)), recursive=True) @@ -143,4 +144,4 @@ if __name__ == "__main__": for configFile in configFiles: print("File:",configFile) main(configFile,sys.argv[2]) - print("Script finished.") + print("Script finished.") \ No newline at end of file