wip - jenkins
parent
23199ce0e4
commit
07152a74ce
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue