public final class BourneShellScript extends FileMonitoringTask
nohup.| Modifier and Type | Class and Description |
|---|---|
static class |
BourneShellScript.DescriptorImpl |
FileMonitoringTask.FileMonitoringControllerExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static boolean |
FORCE_SHELL_WRAPPER |
| Constructor and Description |
|---|
BourneShellScript(String script) |
| Modifier and Type | Method and Description |
|---|---|
void |
captureOutput()
Requests that standard output of the task be captured rather than streamed.
|
String |
getScript() |
protected FileMonitoringTask.FileMonitoringController |
launchWithCookie(FilePath ws,
Launcher launcher,
TaskListener listener,
EnvVars envVars,
String cookieVariable,
String cookieValue) |
charset, defaultCharset, doLaunch, escape, launch, shutDownWatchServicegetDescriptor@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean FORCE_SHELL_WRAPPER
@DataBoundConstructor public BourneShellScript(String script)
public String getScript()
public void captureOutput()
DurableTaskController.watch(hudson.FilePath, org.jenkinsci.plugins.durabletask.Handler, hudson.model.TaskListener), standard output will not be sent to Handler.output(java.io.InputStream); it will be included in Handler.exited(int, byte[]) instead.
Otherwise (using polling mode), standard output will not be sent to Controller.writeLog(hudson.FilePath, java.io.OutputStream); call Controller.getOutput(hudson.FilePath, hudson.Launcher) to collect.
Standard error should still be streamed to the log.
Should be called prior to DurableTask.launch(hudson.EnvVars, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener) to take effect.captureOutput in class DurableTaskprotected FileMonitoringTask.FileMonitoringController launchWithCookie(FilePath ws, Launcher launcher, TaskListener listener, EnvVars envVars, String cookieVariable, String cookieValue) throws IOException, InterruptedException
launchWithCookie in class FileMonitoringTaskIOExceptionInterruptedExceptionCopyright © 2016–2019. All rights reserved.