You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2017/06/05 19:19:34 UTC

[couchdb] branch master updated: (build) Gracefully fail to upload logfiles w/ no creds

This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 7c8a318  (build) Gracefully fail to upload logfiles w/ no creds
7c8a318 is described below

commit 7c8a3182fdfafd970d9351217227c7b8cdffacbf
Author: Joan Touzet <jo...@atypical.net>
AuthorDate: Mon Jun 5 15:09:43 2017 -0400

    (build) Gracefully fail to upload logfiles w/ no creds
---
 build-aux/logfile-uploader.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/build-aux/logfile-uploader.py b/build-aux/logfile-uploader.py
index 27a5c94..d58d9f0 100755
--- a/build-aux/logfile-uploader.py
+++ b/build-aux/logfile-uploader.py
@@ -78,7 +78,13 @@ def build_ci_doc():
     return doc
 
 def upload_logs():
-    lp = os.environ['COUCHAUTH'].split(':')
+    try:
+        lp = os.environ['COUCHAUTH'].split(':')
+    except KeyError as e:
+        print ("ERROR: COUCHAUTH credentials unavailable! "
+            "Unable to upload logfiles.")
+        exit(1)
+
     creds = (lp[0], lp[1])
     doc = build_ci_doc()
     req = requests.post(COUCH_URL,

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].