Support changes for 2019.2.0 release
Change-Id: Ia2e00ef74198818c8f73fa6fff08c47c947e1e52
diff --git a/tcp_tests/managers/jenkins/client.py b/tcp_tests/managers/jenkins/client.py
index afc8900..e713e71 100644
--- a/tcp_tests/managers/jenkins/client.py
+++ b/tcp_tests/managers/jenkins/client.py
@@ -7,6 +7,8 @@
from devops.helpers import helpers
+from requests.exceptions import ConnectionError
+
class JenkinsWrapper(jenkins.Jenkins):
"""Workaround for the bug:
@@ -122,7 +124,11 @@
print(prefix, end='')
def building():
- status = not self.build_info(name, build_id)['building']
+ try:
+ status = not self.build_info(name, build_id)['building']
+ except ConnectionError:
+ status = False
+
if verbose:
time_str = time.strftime("%H:%M:%S")
prefix = "\n" + job_output_prefix.format(