env variables

master
SLW\ARNAUA 2023-06-01 11:20:54 +02:00
parent f7b4aab444
commit 7f5747f236
2 changed files with 3 additions and 2 deletions

1
Jenkinsfile vendored
View File

@ -99,6 +99,7 @@ pipeline {
sleep(300*exportRetryCount)
script {
exportRetryCount = exportRetryCount + 1
sh "printenv"
sh "chmod 755 terraform-provider-dynatrace_v1.30.2"
sh "sudo python3 export.py"
}

View File

@ -9,9 +9,9 @@ from glob import glob
def setEnv(env, time, path, dashboard):
os.environ['DYNATRACE_ENV_URL'] = os.environ.get(env + "_ENV_URL")
os.environ['DYNATRACE_ENV_URL'] = str(os.environ.get(env + "_ENV_URL"))
os.environ['DYNATRACE_API_TOKEN'] = str(os.environ.get(env + "_API_TOKEN"))
os.environ['DYNATRACE_TARGET_FOLDER'] = path + time + "_" + env + dashboard
os.environ['DYNATRACE_TARGET_FOLDER'] = str(path + time + "_" + env + dashboard)
return os.environ