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: I56c9580be9a90f5cda7349a148d467e6ff4e9270changes/78/571678/1
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…
Reference in New Issue