Re-order log ENV stripping and add new key 31/6631/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 8 Sep 2017 21:16:31 +0000 (14:16 -0700)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 29 Sep 2017 16:28:04 +0000 (16:28 +0000)
* 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>
(cherry picked from commit d943695e73a8b14f2a064b8ffdb690ef183a8b78)

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"