-
Notifications
You must be signed in to change notification settings - Fork 10
/
Jenkinsfile_k8s
24 lines (24 loc) · 968 Bytes
/
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
parallel(
failFast: false,
'terraform': {
terraform(
stagingCredentials: [
string(variable: 'AWS_ACCESS_KEY_ID', credentialsId: 'staging-terraform-aws-access-key'),
string(variable: 'AWS_SECRET_ACCESS_KEY', credentialsId:'staging-terraform-aws-secret-key'),
file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'staging-terraform-aws-backend-config'),
],
productionCredentials: [
string(variable: 'AWS_ACCESS_KEY_ID', credentialsId: 'production-terraform-aws-access-key'),
string(variable: 'AWS_SECRET_ACCESS_KEY', credentialsId:'production-terraform-aws-secret-key'),
file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'production-terraform-aws-backend-config'),
],
)
},
// TODO:; split into 2 jobs
// 'updatecli': {
// updatecli(action: 'diff')
// if (env.BRANCH_IS_PRIMARY) {
// updatecli(action: 'apply', cronTriggerExpression: '@daily')
// }
// },
)