File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ pipeline {
17
17
JOB_GCS_BUCKET_INTERNAL = ' beats-ci-temp-internal'
18
18
JOB_GCS_CREDENTIALS = ' beats-ci-gcs-plugin'
19
19
JOB_GCS_EXT_CREDENTIALS = ' beats-ci-gcs-plugin-file-credentials'
20
+ ELASTIC_PACKAGE_GCP_SECRET = ' secret/observability-team/ci/service-account/elastic-package-gcp'
21
+ ELASTIC_OBSERVABILITY_PROJECT_ID = ' elastic-observability'
20
22
STACK_VERSION = " ${ params.stackVersion} "
21
23
}
22
24
options {
@@ -257,6 +259,11 @@ def withCloudTestEnv(Closure body) {
257
259
[var : " AWS_ACCESS_KEY_ID" , password : aws. access_key],
258
260
[var : " AWS_SECRET_ACCESS_KEY" , password : aws. secret_key],
259
261
])
262
+ // GCP
263
+ withGCPEnv(secret : env. ELASTIC_PACKAGE_GCP_SECRET ) {
264
+ maskedVars. add([var : ' GOOGLE_CREDENTIALS' , password : readFile(file : env. GOOGLE_APPLICATION_CREDENTIALS )]);
265
+ maskedVars. add([var : ' GCP_PROJECT_ID' , password : env. ELASTIC_OBSERVABILITY_PROJECT_ID ])
266
+ }
260
267
withEnvMask(vars : maskedVars) {
261
268
body()
262
269
}
You can’t perform that action at this time.
0 commit comments