diff --git a/src/main/java/hudson/scm/SVNAuthenticationManager.java b/src/main/java/hudson/scm/SVNAuthenticationManager.java index 92dff1d04..7f43de864 100644 --- a/src/main/java/hudson/scm/SVNAuthenticationManager.java +++ b/src/main/java/hudson/scm/SVNAuthenticationManager.java @@ -47,6 +47,10 @@ public SVNAuthenticationManager(File configDir, String userName, String password @CheckForNull public SVNAuthentication getFirstAuthentication(String kind, String realm, SVNURL url) throws SVNException { // SVNKIT DefaultAuthenticationManager ignores any credentials that are added to the manager. - return super.getAuthenticationProvider().requestClientAuthentication(kind, url, realm, null, null, false); + SVNAuthentication authentication = super.getAuthenticationProvider().requestClientAuthentication(kind, url, realm, null, null, false); + if (authentication == null) { + authentication = super.getFirstAuthentication(kind, realm, url); + } + return authentication; } }