public class ScheduledTasksApi extends Object
| Constructor and Description |
|---|
ScheduledTasksApi(hudson.EnvVars env,
hudson.FilePath pwd,
Charset charset,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
boolean quiet) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(String taskName,
String command) |
void |
delete(String taskName) |
com.google.common.base.Optional<String> |
getStatus(String taskName) |
boolean |
isDefined(String taskName) |
boolean |
isRunning(String taskName) |
void |
run(String taskName) |
void |
run(String taskName,
String command)
Executes PowerShellCommand command using a scheduled task.
|
public ScheduledTasksApi(hudson.EnvVars env,
hudson.FilePath pwd,
Charset charset,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
boolean quiet)
public void create(String taskName, String command) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void run(String taskName, String command) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void run(String taskName) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic boolean isRunning(String taskName) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic boolean isDefined(String taskName) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void delete(String taskName) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic com.google.common.base.Optional<String> getStatus(String taskName) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2004-2016. All Rights Reserved.