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