Package hudson.slaves
Class CommandLauncher
java.lang.Object
hudson.model.AbstractDescribableImpl<ComputerLauncher>
hudson.slaves.ComputerLauncher
hudson.slaves.CommandLauncher
- All Implemented Interfaces:
ExtensionPoint
,Describable<ComputerLauncher>
ComputerLauncher
through a remote login mechanism like ssh/rsh.- Author:
- Stephen Connolly, Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
In case the flagScriptApproval.isForceSandboxForCurrentUser()
is true, we don't show thedescriptor
for the current user, except if we are editing a node that already has the launcherCommandLauncher
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.slaves.ComputerLauncher
LIST
-
Constructor Summary
ConstructorDescriptionCommandLauncher
(String command) Constructor for use from UI.CommandLauncher
(String command, EnvVars env) Constructor for programmatic use. -
Method Summary
Methods inherited from class hudson.slaves.ComputerLauncher
afterDisconnect, afterDisconnect, beforeDisconnect, beforeDisconnect, checkJavaVersion, isLaunchSupported, launch
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
CommandLauncher
Constructor for use from UI. Conditionally approves the script.- Parameters:
command
- the command to run pending approval- Throws:
Descriptor.FormException
- See Also:
-
CommandLauncher
Constructor for programmatic use. Always approves the script.- Parameters:
command
- the single command to run; note: this can't be a shell statement (e.g. "echo foo > bar; baz" -- if you need to do that, either use "sh -c" or write the expression into a script and point to the script)env
- environment variables for the launcher to include when it runs the command
-
-
Method Details
-
getCommand
-
launch
- Overrides:
launch
in classComputerLauncher
-