Re-order log ENV stripping and add new key 32/6432/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 8 Sep 2017 21:16:31 +0000 (14:16 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 8 Sep 2017 21:16:31 +0000 (14:16 -0700)
* Make the environment stripping be asciibetical so it's easier to know
where to insert new elements

* Add KEY as an environment variable base to be stripped from the
shipped logs

Change-Id: I46367ec36c44b5b29534fff7f86356e8b9abffcb
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
shell/deploy

index 9bbf720..4fe12df 100755 (executable)
@@ -213,7 +213,7 @@ deploy_logs() {
     {
         echo "build-url: ${build_url}"
     } 2>&1 | tee -a "_build-details.log"
-    env | grep -v -E "SSH|HUDSON|COOKIE|TOKEN|DOCKER|PASSWORD" | sort > "_build-enviroment-variables.log"
+    env | grep -v -E "COOKIE|DOCKER|HUDSON|KEY|PASSWORD|SSH|TOKEN" | sort > "_build-enviroment-variables.log"
 
     # Print system info before collecting logs
     touch "_sys-info.log"