Skip to content
Permalink
Browse files
JENKINS-47331 Fails to launch from configurations before the specific…
…ation of prefixString (try another way)
  • Loading branch information
francisu committed Jan 8, 2018
1 parent c2004f0 commit f01cc69e5120a2b5c6a3d043b1ab613d202a73ee
Showing 1 changed file with 1 addition and 2 deletions.
@@ -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();

0 comments on commit f01cc69

Please sign in to comment.