Skip to content

Commit c6163d4

Browse files
committed
added jenkins inegration with terraform
1 parent 95cd0bf commit c6163d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

aws-instance-first-script/Jenkinsfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
{
1717
git branch: 'tf-jenkins', url: 'https://github.com/easyawslearn/Terraform-Tutorial.git'
1818
sh 'cd EC2withJenkins '
19-
sh './terraform init -upgrade=true -get=true -input=false -force-copy'
20-
sh './terraform workspace new "terraform-demo"'
19+
sh 'terraform init -upgrade=true -get=true -input=false -force-copy'
20+
sh 'terraform workspace new "terraform-demo"'
2121
sh 'echo "INFO: New terraform-demo workspace added."'
22-
sh './terraform workspace select terraform-demo'
22+
sh 'terraform workspace select terraform-demo'
2323
sh 'echo "INFO: Terraform -> Planning..."'
24-
sh './terraform plan -out plan_terraform -lock=true'
24+
sh 'terraform plan -out plan_terraform -lock=true'
2525
sh 'echo "INFO: Terraform -> Executing..."'
26-
sh './terraform apply plan_plan_terraform'
26+
sh 'terraform apply plan_plan_terraform'
2727
}
2828
}
2929
}

0 commit comments

Comments
 (0)