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
This commit is contained in:
parent
a3c3672a6f
commit
45529fba54
@ -378,6 +378,8 @@ class Jenkins(object):
|
||||
add_crumb=False, resolve_auth=False)
|
||||
self._session.auth = auth
|
||||
break
|
||||
except TimeoutException:
|
||||
raise
|
||||
except Exception as exc:
|
||||
# assume authentication failure
|
||||
failures.append("auth(%s) %s" % (name, exc))
|
||||
|
Loading…
x
Reference in New Issue
Block a user