master
SLW\ARNAUA 2023-03-09 13:55:22 +01:00
parent f9c9d5ef7b
commit af006ae5d4
2 changed files with 6 additions and 5 deletions

4
Jenkinsfile vendored
View File

@ -56,7 +56,7 @@
} }
stages { stages {
stage('Checkout Repositories'){ stage('Fetch Repositories'){
steps { steps {
parallel 'Checkout Repositories': { parallel 'Checkout Repositories': {
dir("/opt/workspace/shared_configuration/") { dir("/opt/workspace/shared_configuration/") {
@ -73,7 +73,7 @@
} }
stage('Checkout Branch') { stage('Checkout New Branch') {
steps{ steps{
script { script {
def now = new Date() def now = new Date()

View File

@ -116,8 +116,9 @@ if __name__ == "__main__":
# pre-initialization get current working directory # pre-initialization get current working directory
cwd = os.getcwd() cwd = os.getcwd()
print(sys.argv)
print("Script is running...") print("Script is running...")
print("Check arguments:",sys.argv)
if len(sys.argv) != 3: if len(sys.argv) != 3:
print(".\generate.py <path to yaml file/folder> <output path>") print(".\generate.py <path to yaml file/folder> <output path>")
print("Example: .\generate.py .\DE-3\\ .\test\\") print("Example: .\generate.py .\DE-3\\ .\test\\")
@ -135,7 +136,7 @@ if __name__ == "__main__":
for arg in arguments: for arg in arguments:
pathname = os.path.join(cwd,arg) pathname = os.path.join(cwd,arg)
# return path of slo config files # 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)), # root_dir=os.path.join(cwd,os.path.basename(arg)),
recursive=True) recursive=True)