Launcher.DecoratedLauncher, Launcher.DummyLauncher, Launcher.IOTriplet, Launcher.LocalLauncher, Launcher.ProcStarter, Launcher.RemoteLauncher, Launcher.RemoteProcess
channel, envVarsFilterRuleWrapper, listener, showFullPath
Constructor and Description |
---|
LocalLauncher(TaskListener listener) |
LocalLauncher(TaskListener listener,
hudson.remoting.VirtualChannel channel) |
Modifier and Type | Method and Description |
---|---|
void |
kill(Map<String,String> modelEnvVars)
Calls
ProcessTree.killAll(Map) to kill processes. |
Proc |
launch(Launcher.ProcStarter ps)
Primarily invoked from
Launcher.ProcStarter.start() to start a process with a specific launcher. |
hudson.remoting.Channel |
launchChannel(OutputStream out,
ProcessBuilder pb) |
hudson.remoting.Channel |
launchChannel(String[] cmd,
OutputStream out,
FilePath workDir,
Map<String,String> envVars)
Launches a specified process and connects its input/output to a
Channel , then
return it. |
decorateByEnv, decorateByPrefix, decorateFor, getChannel, getComputer, getListener, isUnix, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, maskedPrintCommandLine, maskedPrintCommandLine, prepareFilterRules, printCommandLine, setEnvVarsFilterRuleWrapper
public LocalLauncher(@NonNull TaskListener listener)
public LocalLauncher(TaskListener listener, hudson.remoting.VirtualChannel channel)
public Proc launch(Launcher.ProcStarter ps) throws IOException
Launcher
Launcher.ProcStarter.start()
to start a process with a specific launcher.launch
in class Launcher
IOException
public hudson.remoting.Channel launchChannel(String[] cmd, OutputStream out, FilePath workDir, Map<String,String> envVars) throws IOException
Launcher
Channel
, then
return it.
When the returned channel is terminated, the process will be killed.
launchChannel
in class Launcher
cmd
- The commands.out
- Where the stderr from the launched process will be sent.workDir
- The working directory of the new process, or null
to inherit
from the current processenvVars
- Environment variable overrides. In addition to what the current process
is inherited (if this is going to be launched from an agent, that
becomes the "current" process), these variables will be also set.IOException
public void kill(Map<String,String> modelEnvVars) throws InterruptedException
Launcher
ProcessTree.killAll(Map)
to kill processes.kill
in class Launcher
InterruptedException
public hudson.remoting.Channel launchChannel(OutputStream out, ProcessBuilder pb) throws IOException
out
- Where the stderr from the launched process will be sent.IOException
Copyright © 2004–2021. All rights reserved.