modified
parent
f2e0181e30
commit
9471d95a9a
|
|
@ -112,7 +112,7 @@
|
||||||
stage('Execute Script') {
|
stage('Execute Script') {
|
||||||
steps {
|
steps {
|
||||||
dir("/opt/workspace/coco_apm_slo_yaml2tf/") {
|
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
|
//Only required once CN is not reachable from EMEA
|
||||||
//loopEnvironments(environments)
|
//loopEnvironments(environments)
|
||||||
|
|
|
||||||
|
|
@ -117,14 +117,15 @@ if __name__ == "__main__":
|
||||||
# pre-initialization get current working directory
|
# pre-initialization get current working directory
|
||||||
cwd = os.getcwd()
|
cwd = os.getcwd()
|
||||||
|
|
||||||
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\\")
|
||||||
print("Example: .\generate.py .\DE-3\,.\DE-4\,...")
|
print("Example: .\generate.py .\DE-3\,.\DE-4\,...")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
print("Script is running...")
|
||||||
|
print("Check arguments:",sys.argv)
|
||||||
|
|
||||||
# TESTING: Unocmment this if you want to test it
|
# TESTING: Unocmment this if you want to test it
|
||||||
# for folderName,businessLine in FOLDERS.items():
|
# for folderName,businessLine in FOLDERS.items():
|
||||||
# businessLinePath = os.path.join(cwd,businessLine)
|
# businessLinePath = os.path.join(cwd,businessLine)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue