From 524e06d9008ba3395f68190cb2a26bc25d296f8b Mon Sep 17 00:00:00 2001 From: rforstner Date: Wed, 26 Jan 2022 14:57:49 +0100 Subject: [PATCH] adapting jenkinsfile --- Jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index f3acdcb..6024f15 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,6 +56,8 @@ NAPREPROD_TOKEN_VAR = credentials('NAPREPROD_TOKEN_VAR') CNPROD_TOKEN_VAR = credentials('CNPROD_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') { steps {