wip - jenkins
parent
07152a74ce
commit
b67d13b0ba
|
|
@ -1,8 +1,8 @@
|
||||||
String cloud_provider = "aws"
|
//String cloud_provider = "aws"
|
||||||
String aws_region = "eu-west-1"
|
//String aws_region = "eu-west-1"
|
||||||
String stage = "int"
|
//String stage = "int"
|
||||||
String aws_access_credentials = "fdc_${aws_region}_${stage}_infrastructure.automation.user"
|
//String aws_access_credentials = "fdc_${aws_region}_${stage}_infrastructure.automation.user"
|
||||||
String dynatrace_api_toke_credentials = "api_token_dynatrace_${aws_region}_${stage}"
|
//String dynatrace_api_toke_credentials = "api_token_dynatrace_${aws_region}_${stage}"
|
||||||
|
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
|
|
@ -39,10 +39,12 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
sshagent(credentials: ['sofa-user-automation']) {
|
sshagent(credentials: ['sofa-user-automation']) {
|
||||||
container('terraform') {
|
container('terraform') {
|
||||||
|
sh """
|
||||||
echo "testing..."
|
set -e
|
||||||
|
cd environments/${CLOUD_PROVIDER}/${AWS_REGION}/${STAGE}
|
||||||
|
terraform init
|
||||||
|
terraform fmt
|
||||||
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue