Skip to content

Commit b63a246

Browse files
committed
bug fix
1 parent b1af833 commit b63a246

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

aws-instance-first-script/Jenkinsfile

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,21 @@ pipeline {
4040
}
4141
}
4242
stage('Approval') {
43-
when {
44-
not {
45-
equals expected: true, actual: params.autoApprove
46-
}
47-
}
43+
when {
44+
not {
45+
equals expected: true, actual: params.autoApprove
46+
}
47+
}
4848

49-
steps {
50-
script {
51-
def plan = readFile 'tfplan.txt'
49+
steps {
50+
script {
51+
def plan = readFile 'terraform/aws-instance-first-script/tfplan.txt'
5252
input message: "Do you want to apply the plan?",
5353
parameters: [text(name: 'Plan', description: 'Please review the plan', defaultValue: plan)]
54-
}
55-
}
56-
}
54+
sh 'Approval stage'
55+
}
56+
}
57+
}
5758

5859
stage('Apply') {
5960
steps {

0 commit comments

Comments
 (0)