-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Jenkinsfile_k8s
20 lines (19 loc) · 950 Bytes
/
Jenkinsfile_k8s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if (env.BRANCH_IS_PRIMARY) {
// Only trigger a daily check on the principal branch
properties([pipelineTriggers([cron('@daily')])])
}
terraform(
// "Read only" token
stagingCredentials: [
string(variable: 'TF_VAR_cloudflare_api_token', credentialsId:'staging-cloudflare-api-token'),
string(variable: 'TF_VAR_cloudflare_datadog_api_key', credentialsId:'cloudflare-datadog-api-key'),
file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'staging-terraform-cloudflare-backend-config'),
],
// "Read write" token
productionCredentials: [
string(variable: 'TF_VAR_cloudflare_api_token', credentialsId:'production-cloudflare-api-token'),
string(variable: 'TF_VAR_cloudflare_datadog_api_key', credentialsId:'cloudflare-datadog-api-key'),
file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'production-terraform-cloudflare-backend-config'),
],
publishReports: ['jenkins-infra-data-reports/cloudflare.json'],
)