Skip to content

Commit

Permalink
[JENKINS-47593][SECURITY-643] Allow command to be run without approval
Browse files Browse the repository at this point in the history
- use the second constructor of CommandLauncher to avoid being blocked by the security fix
  • Loading branch information
Wadeck committed Nov 21, 2017
1 parent ff449fb commit ae2bf45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java
Expand Up @@ -228,7 +228,7 @@ protected void launch(EC2Computer computer, TaskListener listener, Instance inst
String sshClientLaunchString = String.format("ssh -o StrictHostKeyChecking=no -i %s %s@%s -p %d %s", identityKeyFile.getAbsolutePath(), node.remoteAdmin, getEC2HostAddress(computer, inst), node.getSshPort(), launchString);

logInfo(computer, listener, "Launching slave agent (via SSH client process): " + sshClientLaunchString);
CommandLauncher commandLauncher = new CommandLauncher(sshClientLaunchString);
CommandLauncher commandLauncher = new CommandLauncher(sshClientLaunchString, null);
commandLauncher.launch(computer, listener);
} finally {
identityKeyFile.delete();
Expand Down

0 comments on commit ae2bf45

Please sign in to comment.