wip - jenkins

master
Sylvain Gibier 2023-06-16 16:21:25 +02:00
parent 23199ce0e4
commit 07152a74ce
1 changed files with 6 additions and 8 deletions

View File

@ -35,21 +35,19 @@ pipeline {
} }
stages { stages {
stage("terraform init") { stage('terraform init') {
steps { steps {
sshagent(credentials: ['sofa-user-automation']) { sshagent(credentials: ['sofa-user-automation']) {
container('terraform') { container('terraform') {
sh """
set -e echo "testing..."
cd environments/${CLOUD_PROVIDER}/${AWS_REGION}/${STAGE}
terraform init
terraform fmt
"""
} }
} }
} }
} }
} }
post { post {