Navigation Menu

Skip to content

Commit

Permalink
[FIXED JENKINS-20326] proxy may not require authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeloof committed Oct 29, 2013
1 parent 1b7fd2b commit 8512c51
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -1414,7 +1414,8 @@ private String getURLWithCrendentials(URIish u, StandardCredentials cred) {

if (proxy != null) {
client.getHostConfiguration().setProxy(proxy.name, proxy.port);
client.getState().setProxyCredentials(AuthScope.ANY, new UsernamePasswordCredentials(proxy.getUserName(), proxy.getPassword()));
if (proxy.getUserName() != null && proxy.getPassword() != null)
client.getState().setProxyCredentials(AuthScope.ANY, new UsernamePasswordCredentials(proxy.getUserName(), proxy.getPassword()));
}

List<String> candidates = new ArrayList<String>();
Expand Down

0 comments on commit 8512c51

Please sign in to comment.