env variables

master
SLW\ARNAUA 2023-06-01 12:19:21 +02:00
parent 98ef6e8ed7
commit cf38bce7eb
1 changed files with 19 additions and 18 deletions

37
Jenkinsfile vendored
View File

@ -14,24 +14,6 @@ pipeline {
triggers {
cron('0 5 * * 0-7')
}
environment {
AUTH = credentials('proxy')
proxy_user = "${AUTH_USR}"
proxy_pw = "${AUTH_PSW}"
EMEA_PROD_API_TOKEN = credentials('EUPROD_TOKEN_VAR')
EMEA_PROD_ENV_URL = 'https://xxu26128.live.dynatrace.com'
EMEA_PREPROD_API_TOKEN = credentials('EUPREPROD_TOKEN_VAR')
EMEA_PREPROD_ENV_URL = 'https://qqk70169.live.dynatrace.com'
NA_PROD_API_TOKEN = credentials('NAPROD_TOKEN_VAR')
NA_PROD_ENV_URL = 'https://wgv50241.live.dynatrace.com'
NA_PREPROD_API_TOKEN = credentials('NAPREPROD_TOKEN_VAR')
NA_PREPROD_ENV_URL = 'https://onb44935.live.dynatrace.com'
CN_PROD_API_TOKEN = credentials('CNPROD_TOKEN_VAR')
CN_PROD_ENV_URL= 'https://dynatracemgd-tsp.bmwgroup.net/e/b921f1b9-c00e-4031-b9d1-f5a0d530757b'
CN_PREPROD_API_TOKEN = credentials('CNPREPROD_TOKEN_VAR')
CN_PREPROD_ENV_URL = 'https://dynatracemgd-tsp.bmwgroup.net/e/ab88c03b-b7fc-45f0-9115-9e9ecc0ced35'
}
stages {
stage('Fetch Data') {
@ -93,6 +75,25 @@ pipeline {
}
stage('Execute Exporting Script') {
environment {
AUTH = credentials('proxy')
proxy_user = "${AUTH_USR}"
proxy_pw = "${AUTH_PSW}"
EMEA_PROD_API_TOKEN = credentials('EUPROD_TOKEN_VAR')
EMEA_PROD_ENV_URL = 'https://xxu26128.live.dynatrace.com'
EMEA_PREPROD_API_TOKEN = credentials('EUPREPROD_TOKEN_VAR')
EMEA_PREPROD_ENV_URL = 'https://qqk70169.live.dynatrace.com'
NA_PROD_API_TOKEN = credentials('NAPROD_TOKEN_VAR')
NA_PROD_ENV_URL = 'https://wgv50241.live.dynatrace.com'
NA_PREPROD_API_TOKEN = credentials('NAPREPROD_TOKEN_VAR')
NA_PREPROD_ENV_URL = 'https://onb44935.live.dynatrace.com'
CN_PROD_API_TOKEN = credentials('CNPROD_TOKEN_VAR')
CN_PROD_ENV_URL= 'https://dynatracemgd-tsp.bmwgroup.net/e/b921f1b9-c00e-4031-b9d1-f5a0d530757b'
CN_PREPROD_API_TOKEN = credentials('CNPREPROD_TOKEN_VAR')
CN_PREPROD_ENV_URL = 'https://dynatracemgd-tsp.bmwgroup.net/e/ab88c03b-b7fc-45f0-9115-9e9ecc0ced35'
}
steps {
dir("/opt/workspace/coco_apm_dynatrace_terraform_backup_exporter") {
retry(3) {