in vault-connection/src/jetbrains/buildServer/buildTriggers/vcs/vault/impl/VaultConnectionImpl.java [226:249]
private void login(int attempts) throws VcsException {
for (int i = 1; i <= attempts; ++i) {
try {
ServerOperations.client.LoginOptions.URL = myParameters.getURL();
ServerOperations.client.LoginOptions.Repository = myParameters.getRepository();
ServerOperations.client.LoginOptions.User = myParameters.getUser();
ServerOperations.client.LoginOptions.Password = myParameters.getPassword();
ServerOperations.Login();
return;
} catch (NoClassDefFoundError e) {
throw new VcsException(VaultUtil.NO_API_FOUND_EXCEPTION, e);
} catch (Throwable th) {
logout();
if (i == attempts) {
throw new VcsException(specifyMessage(th.getMessage()), th);
}
}
}
}