Skip to content
Permalink
Browse files
[JENKINS-47593][SECURITY-643] Allow command to be run without approval
- 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 ae2bf458ecad2a84d0d9a5f899977f4a6da82af6
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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();

0 comments on commit ae2bf45

Please sign in to comment.