modified
parent
f9c9d5ef7b
commit
af006ae5d4
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
||||||
|
|
@ -143,4 +144,4 @@ if __name__ == "__main__":
|
||||||
for configFile in configFiles:
|
for configFile in configFiles:
|
||||||
print("File:",configFile)
|
print("File:",configFile)
|
||||||
main(configFile,sys.argv[2])
|
main(configFile,sys.argv[2])
|
||||||
print("Script finished.")
|
print("Script finished.")
|
||||||
Loading…
Reference in New Issue