Skip to content

Commit

Permalink
[JENKINS-47331] Problem with leading spaces in slaveCommandPrefix (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Upton IV committed Jan 8, 2018
1 parent 55aab3f commit 8dceeef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java
Expand Up @@ -192,6 +192,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();

SlaveTemplate slaveTemplate = computer.getSlaveTemplate();

Expand Down

0 comments on commit 8dceeef

Please sign in to comment.