Terraform within Jenkins Pipeline via Git push Webhook

preview_player
Показать описание
Git push saves files and then github webhook calls jenkins job and them pipeline which uses terraform within it.
Рекомендации по теме
Комментарии
Автор

Good one bro, very nicely explained :)

krishnaraju
Автор

Just add trigger in your Jenkinsfile and you will solve the problem:

pipeline {
agent any
triggers {
githubPush()
}
stages {
...
}
}

nemanjampek
Автор

Hello Pawan! Nice video, thanks for posting. I am a little confused. what is the current working directory for the project when it executes? I believe Jenkins will pull the code from the repo into the workspace/job directory. So the ec2.tf and Jenkinsfile will reside in the workspace directory on the server? why do we copy the vars.tf to ./jenkins ? what is that path? where exactly is the location of the files?
Question is, what is the location of the ec2.tf and Jenkinsfile on the jenkins server? because you copied the vars.tf to ./jenkins. what is the current path?
Thanks man

bhakta_rg
Автор

Hi Pavan,


Need your help in Terraform Integration in Jenkins.

Germany_wale_bhaiya
Автор

how to configure Terraform? I set up terraform but it is erroring out with this message "Plugin reinitialization required. Please run "terraform init"." Any ideas ?

diliprathore
Автор

Hello how you set part home/ec2-user/terraform ?

hamdibelhaj
Автор

please share your jenkins file....how you set path home/ec2-user/terraform ..please explain me ..thanks

siddareddy