|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.plugins.batch_task.BatchTask
public final class BatchTask
A batch task.
| Field Summary | |
|---|---|
String |
name
Name of this task. |
String |
script
Shell script to be executed. |
| Constructor Summary | |
|---|---|
BatchTask(String name,
String script)
|
|
| Method Summary | |
|---|---|
void |
checkAbortPermission()
|
BatchRun |
createExecutable()
|
hudson.widgets.HistoryWidget |
createHistoryWidget()
|
void |
doCancelQueue(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
void |
doDoDelete(org.kohsuke.stapler.StaplerResponse rsp)
Deletes this task. |
void |
doExecute(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Schedules the execution |
hudson.security.ACL |
getACL()
Returns the ACL for this object. |
hudson.model.Label |
getAssignedLabel()
|
String |
getBuildStatusUrl()
|
hudson.model.queue.CauseOfBlockage |
getCauseOfBlockage()
|
String |
getDisplayName()
|
Object |
getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
long |
getEstimatedDuration()
|
String |
getFullDisplayName()
|
hudson.model.BallColor |
getIconColor()
|
hudson.model.Node |
getLastBuiltOn()
|
BatchRun |
getLastFailedRun()
|
BatchRun |
getLastRun()
Obtains the latest BatchRun record. |
BatchRun |
getLastSuccessfulRun()
|
String |
getName()
|
String |
getNextBuildNumber()
Gets the expected build number assigned to the next run. |
hudson.model.Queue.Task |
getOwnerTask()
|
BatchTaskProperty |
getParent()
|
hudson.model.ResourceList |
getResourceList()
BatchTask requires exclusive access to the workspace. |
Iterable<BatchRun> |
getRuns()
Gets all the run records. |
Object |
getSameNodeConstraint()
|
String |
getSearchUrl()
|
Collection<? extends hudson.model.queue.SubTask> |
getSubTasks()
|
String |
getUrl()
|
String |
getWhyBlocked()
|
boolean |
hasAbortPermission()
|
boolean |
hasBuildPermission()
|
boolean |
hasConfigurePermission()
|
boolean |
hasDeletePermission()
|
boolean |
isBuildBlocked()
|
boolean |
isConcurrentBuild()
|
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String name
public final String script
| Constructor Detail |
|---|
@DataBoundConstructor
public BatchTask(String name,
String script)
| Method Detail |
|---|
public BatchTaskProperty getParent()
public String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItempublic String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectgetDisplayName in interface hudson.model.ResourceActivitypublic String getFullDisplayName()
getFullDisplayName in interface hudson.model.Queue.Taskpublic boolean isBuildBlocked()
isBuildBlocked in interface hudson.model.Queue.Taskpublic String getWhyBlocked()
getWhyBlocked in interface hudson.model.Queue.Taskpublic hudson.model.queue.CauseOfBlockage getCauseOfBlockage()
getCauseOfBlockage in interface hudson.model.Queue.Taskpublic String getName()
getName in interface hudson.model.Queue.Taskpublic boolean isConcurrentBuild()
isConcurrentBuild in interface hudson.model.Queue.Taskpublic long getEstimatedDuration()
getEstimatedDuration in interface hudson.model.queue.SubTaskpublic hudson.model.Label getAssignedLabel()
getAssignedLabel in interface hudson.model.queue.SubTaskpublic hudson.model.Node getLastBuiltOn()
getLastBuiltOn in interface hudson.model.queue.SubTaskpublic String getBuildStatusUrl()
public hudson.model.BallColor getIconColor()
public BatchRun getLastRun()
BatchRun record.
public BatchRun getLastSuccessfulRun()
public BatchRun getLastFailedRun()
public Iterable<BatchRun> getRuns()
public hudson.widgets.HistoryWidget createHistoryWidget()
public BatchRun createExecutable()
throws IOException
createExecutable in interface hudson.model.queue.SubTaskIOExceptionpublic String getNextBuildNumber()
public hudson.security.ACL getACL()
ACL for this object.
public void checkAbortPermission()
checkAbortPermission in interface hudson.model.Queue.Taskpublic boolean hasAbortPermission()
hasAbortPermission in interface hudson.model.Queue.Taskpublic boolean hasBuildPermission()
public boolean hasDeletePermission()
public boolean hasConfigurePermission()
public hudson.model.ResourceList getResourceList()
BatchTask requires exclusive access to the workspace.
getResourceList in interface hudson.model.ResourceActivity
public Object getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
public void doExecute(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOException
javax.servlet.ServletException
public void doDoDelete(org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOException
javax.servlet.ServletException
public void doCancelQueue(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOException
javax.servlet.ServletExceptionpublic String getUrl()
getUrl in interface hudson.model.Queue.Taskpublic Collection<? extends hudson.model.queue.SubTask> getSubTasks()
getSubTasks in interface hudson.model.Queue.Taskpublic hudson.model.Queue.Task getOwnerTask()
getOwnerTask in interface hudson.model.queue.SubTaskpublic Object getSameNodeConstraint()
getSameNodeConstraint in interface hudson.model.queue.SubTask
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||