-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathJenkinsfile_k8s
19 lines (18 loc) · 1006 Bytes
/
Jenkinsfile_k8s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if (env.BRANCH_IS_PRIMARY) {
// Only trigger a daily check on the principal branch
properties([pipelineTriggers([cron('@daily')])])
}
terraform(
stagingCredentials: [
string(variable: 'TF_VAR_datadog_api_key', credentialsId: 'staging-datadog-api-key'),
string(variable: 'TF_VAR_datadog_app_key', credentialsId: 'staging-datadog-app-key'),
string(variable: 'TF_VAR_datadog_jenkinsuser_password', credentialsId: 'datadog-jenkinsuser-password'),
file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'staging-terraform-datadog-backend-config'),
],
productionCredentials: [
string(variable: 'TF_VAR_datadog_api_key', credentialsId: 'production-datadog-api-key'),
string(variable: 'TF_VAR_datadog_app_key', credentialsId: 'production-datadog-app-key'),
string(variable: 'TF_VAR_datadog_jenkinsuser_password', credentialsId: 'datadog-jenkinsuser-password'),
file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'production-terraform-datadog-backend-config'),
],
)