Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-11663] Swarm Client fails to connect to Jenkins when Authent…
…ication is enabled but

Authorization is diabled
  • Loading branch information
ssogabe committed Mar 18, 2012
1 parent ddeb1e8 commit 992f491
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/main/java/hudson/plugins/swarm/Client.java
Expand Up @@ -284,8 +284,10 @@ protected void connect() throws InterruptedException {

args.add("-url");
args.add(target.url);
args.add("-credentials");
args.add(username + ":" + password);
if (username != null && password != null) {
args.add("-credentials");
args.add(username + ":" + password);
}
args.add("-headless");
args.add("-noreconnect");

Expand Down

0 comments on commit 992f491

Please sign in to comment.