Terraform Jenkins pipeline setup
Assume Jenkins server is already setup
Dowload and install terraform cli.
Note the path of terraform binary downloaded
Install Terraform plugin from Jenkins plugin Manager.
Navigate to Global tool configuration in jenkins.
in terraform section, map the terraform binary folder path
create pipeline jenkins job
write pipeline script, utilize pipeline script
generator’s option ‘Declarative Directive Generator’ for terraform scripting
utilize pipeline script generator, create different CI/CDstages like git checkout, sonar, image publish