modified
parent
e8bba3da16
commit
f9c9d5ef7b
|
|
@ -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 "./generate.py /opt/workspace/shared_configuration/${params.INPUTFOLDER} /opt/workspace/coco_terraform_config/"
|
sh "python3 generate.py /opt/workspace/shared_configuration/${params.INPUTFOLDER} /opt/workspace/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)
|
||||||
|
|
|
||||||
|
|
@ -116,8 +116,8 @@ 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(sys.argv)
|
||||||
|
print("Script is running...")
|
||||||
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\\")
|
||||||
|
|
@ -143,3 +143,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.")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue