test terraform

master
ermisw 2023-10-03 12:07:19 +02:00
parent ef7b7ebe4e
commit 710d0a6b09
1 changed files with 12 additions and 2 deletions

14
Jenkinsfile vendored
View File

@ -12,10 +12,20 @@ pipeline {
// } // }
// } // }
stage('TF Plan') { 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 { steps {
container('terraform') { //container('terraform') {
sh 'terraform version' sh 'terraform version'
} //}
} }
} }
// stage('Deploy Helm chart') { // stage('Deploy Helm chart') {