Ensure timeout exceptions are re-raised during auth attempts

Timeouts are different to auth failures, make sure to re-raise them
while attempting multiple authentications.

Change-Id: I56c9580be9a90f5cda7349a148d467e6ff4e9270
Darragh Bailey 2018-06-01 10:48:54 +01:00
parent a3c3672a6f
commit 45529fba54
1 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,8 @@ class Jenkins(object):
add_crumb=False, resolve_auth=False)
self._session.auth = auth
except TimeoutException:
except Exception as exc:
# assume authentication failure
failures.append("auth(%s) %s" % (name, exc))