modified
parent
f9c9d5ef7b
commit
af006ae5d4
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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 <path to yaml file/folder> <output path>")
|
||||
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.")
|
||||
Loading…
Reference in New Issue