|Modifier and Type||Method and Description|
Primarily invoked from
Launches a specified process and connects its input/output to a
decorateByEnv, decorateByPrefix, decorateFor, getChannel, getComputer, getListener, isUnix, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, maskedPrintCommandLine, maskedPrintCommandLine, printCommandLine
public DummyLauncher(@NonNull TaskListener listener)
public Proc launch(Launcher.ProcStarter starter) throws IOException
Launcher.ProcStarter.start()to start a process with a specific launcher.
public hudson.remoting.Channel launchChannel(String cmd, OutputStream out, FilePath workDir, Map<String,String> envVars) throws IOException, InterruptedException
Channel, then return it.
When the returned channel is terminated, the process will be killed.
cmd- The commands.
out- Where the stderr from the launched process will be sent.
workDir- The working directory of the new process, or
nullto inherit from the current process
envVars- 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.
Copyright © 2004–2020. All rights reserved.