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