Skip to content

Commit

Permalink
JENKINS-47331 Fails to launch from configurations before the specific…
Browse files Browse the repository at this point in the history
…ation of prefixString (try another way)
  • Loading branch information
francisu committed Jan 8, 2018
1 parent c2004f0 commit f01cc69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java
Expand Up @@ -191,8 +191,7 @@ protected void launch(EC2Computer computer, TaskListener listener, Instance inst

String jvmopts = computer.getNode().jvmopts;
String prefix = computer.getSlaveCommandPrefix();
String launchString = prefix + " java " + (jvmopts != null ? jvmopts : "") + " -jar " + tmpDir + "/slave.jar";
// launchString = launchString.trim();
String launchString = (prefix.equals("") ? "java " : prefix + " java ") + (jvmopts != null ? jvmopts : "") + " -jar " + tmpDir + "/slave.jar";

SlaveTemplate slaveTemplate = computer.getSlaveTemplate();

Expand Down

0 comments on commit f01cc69

Please sign in to comment.