couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woh...@apache.org
Subject [couchdb] branch master updated: (build) Gracefully fail to upload logfiles w/ no creds
Date Mon, 05 Jun 2017 19:19:34 GMT
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 <joant@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" <commits@couchdb.apache.org>'].

Mime
View raw message