This repository automatically builds containers for using the terraform
command line program. It contains the latest terraform
version.
docker run -i -t mariusv/terraform-jnlp-slave:0.11.5 <command>
pipeline {
agent none
stages {
stage('terraform Version') {
agent {label 'tf-slave'}
steps {
sh "terraform version"
}
}
}
}
The above example is used with Kubernetes plugin and it assumes you already created a new pod
template labeled in this example tf-slave
.