public abstract class FileMonitoringTask extends DurableTask
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FileMonitoringTask.FileMonitoringController |
| Constructor and Description |
|---|
FileMonitoringTask() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract FileMonitoringTask.FileMonitoringController |
doLaunch(hudson.FilePath workspace,
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.
|
Controller |
launch(hudson.EnvVars env,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Launches a durable task.
|
getDescriptorpublic final Controller launch(hudson.EnvVars env, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws IOException, InterruptedException
DurableTasklaunch in class DurableTaskenv - basic environment variables to use during launchworkspace - the workspace to uselauncher - a way to start processeslistener - log output for the buildIOExceptionInterruptedExceptionprotected abstract FileMonitoringTask.FileMonitoringController doLaunch(hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.EnvVars envVars) throws IOException, InterruptedException
workspace - the workspace to uselauncher - a way to launch processeslistener - build console logenvVars - recommended environment for the subprocessIOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.