public abstract class DurableTask extends hudson.model.AbstractDescribableImpl<DurableTask> implements hudson.ExtensionPoint
config.jelly for form data binding.| Constructor and Description |
|---|
DurableTask() |
| 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). |
DurableTaskDescriptor |
getDescriptor() |
abstract Controller |
launch(hudson.EnvVars env,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Launches a durable task.
|
public DurableTaskDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<DurableTask>getDescriptor in class hudson.model.AbstractDescribableImpl<DurableTask>public abstract Controller launch(hudson.EnvVars env, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws IOException, InterruptedException
env - basic environment variables to use during launchworkspace - the workspace to uselauncher - a way to start processeslistener - log output for the buildIOExceptionInterruptedExceptionpublic void captureOutput()
throws UnsupportedOperationException
Controller.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 launch(hudson.EnvVars, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener) to take effect.UnsupportedOperationException - if this implementation does not support that modeCopyright © 2016–2017. All rights reserved.