-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
37 lines (32 loc) · 966 Bytes
/
Copy pathJenkinsfile
File metadata and controls
37 lines (32 loc) · 966 Bytes
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
35
36
37
pipeline {
agent any
environment {
ARM_CLIENT_ID = credentials('azure-client-id')
ARM_CLIENT_SECRET = credentials('azure-client-secret')
ARM_TENANT_ID = credentials('azure-tenant-id')
ARM_SUBSCRIPTION_ID = credentials('azure-subscription-id')
}
stages {
stage('Terraform Init') {
steps {
dir('azurerm_network_interface') {
bat 'C:\\Terraform\\terraform.exe init'
}
}
}
stage('Terraform Plan') {
steps {
dir('azurerm_network_interface') {
bat 'C:\\Terraform\\terraform.exe plan'
}
}
}
stage('Terraform Apply') {
steps {
dir('azurerm_network_interface') {
bat 'C:\\Terraform\\terraform.exe apply --auto-approve'
}
}
}
}
}