pipeline { agent any stages { stage('INIT') { steps { sh '''export PATH=$PATH:/var/jenkins_home terraform init''' } } stage('Plann') { steps { sh '''export PATH=$PATH:/var/jenkins_home terraform plan''' } } stage('Apply') { steps { sh '''export PATH=$PATH:/var/jenkins_home terraform apply -auto-approve''' } } stage('Destroy') { steps { sh '''export PATH=$PATH:/var/jenkins_home terraform destroy -auto-approve''' } } } }