Skip to content
Permalink
Browse files
[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 992f49199868f0e9d8698aa48a93428b177eb018
Showing 1 changed file with 4 additions and 2 deletions.
@@ -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");

0 comments on commit 992f491

Please sign in to comment.