From 67c7509669b5458a4f393a33686ea5c0e0358352 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 26 Oct 2020 22:48:43 +0000 Subject: [PATCH] [CI] set env variable for the params (#22143) (#22163) --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 610c868c4a3..44bb460d55b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,6 +12,7 @@ pipeline { agent { label 'ubuntu-18 && immutable' } environment { AWS_ACCOUNT_SECRET = 'secret/observability-team/ci/elastic-observability-aws-account-auth' + AWS_REGION = "${params.awsRegion}" REPO = 'beats' BASE_DIR = "src/github.com/elastic/${env.REPO}" DOCKERELASTIC_SECRET = 'secret/observability-team/ci/docker-registry/prod' @@ -415,7 +416,7 @@ def withCloudTestEnv(Closure body) { error("${AWS_ACCOUNT_SECRET} doesn't contain 'secret_key'") } maskedVars.addAll([ - [var: "AWS_REGION", password: params.awsRegion], + [var: "AWS_REGION", password: "${env.AWS_REGION}"], [var: "AWS_ACCESS_KEY_ID", password: aws.access_key], [var: "AWS_SECRET_ACCESS_KEY", password: aws.secret_key], ])