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 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.
|
protected static Map<String,String> |
escape(hudson.EnvVars envVars)
JENKINS-40734: blocks the substitutions of
EnvVars.overrideExpandingAll(java.util.Map<java.lang.String, java.lang.String>) done by Launcher. |
Controller |
launch(hudson.EnvVars env,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Launches a durable task.
|
protected FileMonitoringTask.FileMonitoringController |
launchWithCookie(hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.EnvVars envVars,
String cookieVariable,
String cookieValue) |
captureOutput, 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 FileMonitoringTask.FileMonitoringController launchWithCookie(hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.EnvVars envVars, String cookieVariable, String cookieValue) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected 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 © 2016–2017. All rights reserved.