adapting jenkinsfile
parent
dd89cf8aae
commit
524e06d900
|
|
@ -56,6 +56,8 @@
|
||||||
NAPREPROD_TOKEN_VAR = credentials('NAPREPROD_TOKEN_VAR')
|
NAPREPROD_TOKEN_VAR = credentials('NAPREPROD_TOKEN_VAR')
|
||||||
CNPROD_TOKEN_VAR = credentials('CNPROD_TOKEN_VAR')
|
CNPROD_TOKEN_VAR = credentials('CNPROD_TOKEN_VAR')
|
||||||
CNPREPROD_TOKEN_VAR = credentials('CNPREPROD_TOKEN_VAR')
|
CNPREPROD_TOKEN_VAR = credentials('CNPREPROD_TOKEN_VAR')
|
||||||
|
AWS_ACCESS_KEY_ID = credentials('AWS_TERRAFORM_KEY')
|
||||||
|
AWS_SECRET_ACCESS_KEY = credentials('AWS_SECRET_ACCESS_KEY')
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -69,6 +71,19 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Install Terraform') {
|
||||||
|
steps {
|
||||||
|
sh '''
|
||||||
|
cd /tmp
|
||||||
|
curl https://releases.hashicorp.com/terraform/1.1.4/terraform_1.1.4_linux_amd64.zip > terraform.zip
|
||||||
|
unzip terraform.zip
|
||||||
|
sudo mv /tmp/terraform /usr/local/bin
|
||||||
|
terraform --version
|
||||||
|
cd ~
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Execute Reporting Script') {
|
stage('Execute Reporting Script') {
|
||||||
steps {
|
steps {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue