From a4c019e1f9ce8434f56ed5c6086877e5a8862ca5 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Mon, 10 Jul 2017 09:55:19 +1000 Subject: [PATCH] Filter creds before writing to logs. Remove any credentials possibily set as evnironment variables when running the job. Change-Id: I8e6daa19bb76152944e54be454fc83adbb9221fc Signed-off-by: Anil Belur --- shell/deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/deploy b/shell/deploy index e330a95a..6fd66b1c 100755 --- a/shell/deploy +++ b/shell/deploy @@ -207,7 +207,7 @@ deploy_logs() { { echo "build-url: ${build_url}" } 2>&1 | tee -a "_build-details.log" - env | grep -v PASSWORD | sort > "_build-enviroment-variables.log" + env | grep -v -E "SSH|HUDSON|COOKIE|TOKEN|DOCKER|PASSWORD" | sort > "_build-enviroment-variables.log" # Print system info before collecting logs touch "_sys-info.log" -- 2.16.6