You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by ph...@apache.org on 2017/12/20 21:30:33 UTC
[09/15] zookeeper git commit: Another fix on bad job url.
Another fix on bad job url.
Project: http://git-wip-us.apache.org/repos/asf/zookeeper/repo
Commit: http://git-wip-us.apache.org/repos/asf/zookeeper/commit/e4d226d1
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/e4d226d1
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/e4d226d1
Branch: refs/heads/jenkins-tools
Commit: e4d226d1a8a7e74690f811fbc459eab0f60cb5ef
Parents: 8252418
Author: Michael Han <ha...@apache.org>
Authored: Thu May 18 11:26:18 2017 -0700
Committer: Michael Han <ha...@apache.org>
Committed: Thu May 18 11:26:18 2017 -0700
----------------------------------------------------------------------
zk-test-report/zk_test_analyzer.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/zookeeper/blob/e4d226d1/zk-test-report/zk_test_analyzer.py
----------------------------------------------------------------------
diff --git a/zk-test-report/zk_test_analyzer.py b/zk-test-report/zk_test_analyzer.py
index 130d744..f7a4535 100644
--- a/zk-test-report/zk_test_analyzer.py
+++ b/zk-test-report/zk_test_analyzer.py
@@ -95,7 +95,11 @@ def generate_report(build_url):
:return: classified test results.
"""
LOG.info("Analyzing %s", build_url)
- response = requests.get(build_url + "/api/json").json()
+ try:
+ response = requests.get(build_url + "/api/json").json()
+ except JSONDecodeError:
+ LOG.error("failed to get: " + build_url + "/api/json")
+ return
if response["building"]:
LOG.info("Skipping this build since it is in progress.")
return {}