public final class WindowsBatchScript extends FileMonitoringTask
| Modifier and Type | Class and Description |
|---|---|
static class |
WindowsBatchScript.DescriptorImpl |
FileMonitoringTask.FileMonitoringController| Constructor and Description |
|---|
WindowsBatchScript(String script) |
| Modifier and Type | Method and Description |
|---|---|
void |
captureOutput()
Requests that standard output of the task be captured rather than streamed to
Controller.writeLog(hudson.FilePath, java.io.OutputStream). |
protected FileMonitoringTask.FileMonitoringController |
doLaunch(hudson.FilePath ws,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.EnvVars envVars)
Should start a process which sends output to log file
in the workspace and finally writes its exit code to result file.
|
String |
getScript() |
escape, launch, launchWithCookiegetDescriptor@DataBoundConstructor public WindowsBatchScript(String script)
public String getScript()
public void captureOutput()
DurableTaskController.writeLog(hudson.FilePath, java.io.OutputStream).
If so, you may call Controller.getOutput(hudson.FilePath, hudson.Launcher).
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 doLaunch(hudson.FilePath ws, hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.EnvVars envVars) throws IOException, InterruptedException
FileMonitoringTaskdoLaunch in class FileMonitoringTaskws - the workspace to uselauncher - a way to launch processeslistener - build console logenvVars - recommended environment for the subprocessIOExceptionInterruptedExceptionCopyright © 2016–2017. All rights reserved.