diff --git a/Jenkinsfile b/Jenkinsfile index cdc2d26..104f616 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,10 +12,20 @@ pipeline { // } // } stage('TF Plan') { + agent { + docker { + image 'hashicorp/terraform:latest' + // Run the container on the node specified at the + // top-level of the Pipeline, in the same workspace, + // rather than on a new node entirely: + args '--entrypoint="" -u root -v /opt/jenkins/.aws:/root/.aws' + + } + } steps { - container('terraform') { + //container('terraform') { sh 'terraform version' - } + //} } } // stage('Deploy Helm chart') {