From 710d0a6b093977ce39f3a6e37609acb2c2512aa5 Mon Sep 17 00:00:00 2001 From: ermisw Date: Tue, 3 Oct 2023 12:07:19 +0200 Subject: [PATCH] test terraform --- Jenkinsfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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') {