-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-37184] [JENKINS-5124] Log the exception that is thrown if Jenksins can't get info() on a subversion repository using a tunnel #165
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,6 +179,7 @@ context, getTagsDir(), getCredentialsId(), null | |
SVNURL repoURL = SVNURL.parseURIDecoded(getTagsDir()); | ||
|
||
SVNRepository repo = SVNRepositoryFactory.create(repoURL); | ||
repo.setTunnelProvider(SubversionSCM.createDefaultSVNOptions()); | ||
repo.setAuthenticationManager(authManager); | ||
SVNLogClient logClient = new SVNLogClient(authManager, null); | ||
|
||
|
@@ -255,6 +256,7 @@ private boolean isSVNRepositoryProjectRoot(SVNRepository repo) { | |
return true; | ||
} | ||
} catch (SVNException e) { | ||
LOGGER.log(Level.SEVERE, "An SVN exception occurred", e); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The message does not provide any value There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's doesn't? It tells a sysadmin that they have a misconfigured repository line when they specify svn+foo://domain/path and foo is not a configured tunnel in .subversion/config. It's much better then throwing that exception on the floor. It's the only way I would know how to fix the bug. |
||
return false; | ||
} | ||
return false; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not about logging, is it?