Skip to content

Commit

Permalink
Merge pull request #138 from jmittert/JENKINS-27260
Browse files Browse the repository at this point in the history
[JENKINS-27260] SPNEGO for Windows in EC2 Plugin
  • Loading branch information
francisu committed Apr 11, 2015
2 parents 8a4454a + 0e840f7 commit 1ba2206
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -30,7 +30,7 @@ protected void launch(EC2Computer computer, PrintStream logger, Instance inst) t

try {
String initScript = computer.getNode().initScript;
String tmpDir = (computer.getNode().tmpDir != null ? computer.getNode().tmpDir : "C:\\Windows\\Temp\\");
String tmpDir = (computer.getNode().tmpDir != null && !computer.getNode().tmpDir.equals("") ? computer.getNode().tmpDir : "C:\\Windows\\Temp\\");

logger.println("Creating tmp directory if it does not exist");
connection.execute("if not exist " + tmpDir + " mkdir " + tmpDir);
Expand Down
Expand Up @@ -200,7 +200,7 @@ private void setupHTTPClient() {
private DefaultHttpClient buildHTTPClient()
{
DefaultHttpClient httpclient = new DefaultHttpClient();
httpclient.getAuthSchemes().unregister(AuthPolicy.SPNEGO);
//httpclient.getAuthSchemes().unregister(AuthPolicy.SPNEGO);
httpclient.setCredentialsProvider(credsProvider);
httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 5000);
//httpclient.setHttpRequestRetryHandler(new WinRMRetryHandler());
Expand Down

0 comments on commit 1ba2206

Please sign in to comment.