Skip to content

Commit 099465e

Browse files
Update Jenkinsfile
remove pwd
1 parent 3f512ff commit 099465e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

aws-instance-first-script/Jenkinsfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ pipeline {
3232

3333
stage('Plan') {
3434
steps {
35-
bat 'pwd;cd terraform/aws-instance-first-script ; terraform init -input=false'
36-
bat 'pwd;cd terraform/aws-instance-first-script ; terraform workspace new ${environment}'
37-
bat 'pwd;cd terraform/aws-instance-first-script ; terraform workspace select ${environment}'
38-
bat "pwd;cd terraform/aws-instance-first-script ;terraform plan -input=false -out tfplan "
39-
bat 'pwd;cd terraform/aws-instance-first-script ;terraform show -no-color tfplan > tfplan.txt'
35+
bat ';cd terraform/aws-instance-first-script ; terraform init -input=false'
36+
bat ';cd terraform/aws-instance-first-script ; terraform workspace new ${environment}'
37+
bat ';cd terraform/aws-instance-first-script ; terraform workspace select ${environment}'
38+
bat ";cd terraform/aws-instance-first-script ;terraform plan -input=false -out tfplan "
39+
bat ';cd terraform/aws-instance-first-script ;terraform show -no-color tfplan > tfplan.txt'
4040
}
4141
}
4242
stage('Approval') {
@@ -54,10 +54,10 @@ pipeline {
5454
}
5555
}
5656
}
57-
57+
re
5858
stage('Apply') {
5959
steps {
60-
bat "pwd;cd terraform/aws-instance-first-script ; terraform apply -input=false tfplan"
60+
bat ";cd terraform/aws-instance-first-script ; terraform apply -input=false tfplan"
6161
}
6262
}
6363
}

0 commit comments

Comments
 (0)