-
Notifications
You must be signed in to change notification settings - Fork 6
/
Jenkinsfile_k8s
34 lines (33 loc) · 1.08 KB
/
Jenkinsfile_k8s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
if (env.BRANCH_IS_PRIMARY) {
// Only trigger a daily check on the principal branch
properties([pipelineTriggers([cron('@daily')])])
}
terraform(
stagingCredentials: [
azureServicePrincipal(
credentialsId: 'staging-terraform-azure-net-serviceprincipal',
subscriptionIdVariable: 'ARM_SUBSCRIPTION_ID',
clientIdVariable: 'ARM_CLIENT_ID',
clientSecretVariable: 'ARM_CLIENT_SECRET',
tenantIdVariable: 'ARM_TENANT_ID',
),
file(
credentialsId: 'staging-terraform-azure-net-backend-config',
variable: 'BACKEND_CONFIG_FILE',
),
],
productionCredentials: [
azureServicePrincipal(
credentialsId: 'production-terraform-azure-net-serviceprincipal',
subscriptionIdVariable: 'ARM_SUBSCRIPTION_ID',
clientIdVariable: 'ARM_CLIENT_ID',
clientSecretVariable: 'ARM_CLIENT_SECRET',
tenantIdVariable: 'ARM_TENANT_ID',
),
file(
credentialsId: 'production-terraform-azure-net-backend-config',
variable: 'BACKEND_CONFIG_FILE',
),
],
publishReports: ['jenkins-infra-data-reports/azure-net.json'],
)