|
|||||||||
| 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 | |
|---|---|
java.lang.String |
name
Name of this task. |
java.lang.String |
script
Shell script to be executed. |
| Constructor Summary | |
|---|---|
BatchTask(java.lang.String name,
java.lang.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()
|
java.lang.String |
getBuildStatusUrl()
|
hudson.model.queue.CauseOfBlockage |
getCauseOfBlockage()
|
java.lang.String |
getDisplayName()
|
java.lang.Object |
getDynamic(java.lang.String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
long |
getEstimatedDuration()
|
java.lang.String |
getFullDisplayName()
|
hudson.model.BallColor |
getIconColor()
|
hudson.model.Node |
getLastBuiltOn()
|
BatchRun |
getLastFailedRun()
|
BatchRun |
getLastRun()
Obtains the latest BatchRun record. |
BatchRun |
getLastSuccessfulRun()
|
java.lang.String |
getName()
|
java.lang.String |
getNextBuildNumber()
Gets the expected build number assigned to the next run. |
BatchTaskProperty |
getParent()
|
hudson.model.ResourceList |
getResourceList()
BatchTask requires exclusive access to the workspace. |
java.lang.Iterable<BatchRun> |
getRuns()
Gets all the run records. |
java.lang.String |
getSearchUrl()
|
java.lang.String |
getUrl()
|
java.lang.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 java.lang.String name
public final java.lang.String script
| Constructor Detail |
|---|
@DataBoundConstructor
public BatchTask(java.lang.String name,
java.lang.String script)
| Method Detail |
|---|
public BatchTaskProperty getParent()
public java.lang.String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItempublic java.lang.String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectgetDisplayName in interface hudson.model.ResourceActivitypublic java.lang.String getFullDisplayName()
getFullDisplayName in interface hudson.model.Queue.Taskpublic boolean isBuildBlocked()
isBuildBlocked in interface hudson.model.Queue.Taskpublic java.lang.String getWhyBlocked()
getWhyBlocked in interface hudson.model.Queue.Taskpublic hudson.model.queue.CauseOfBlockage getCauseOfBlockage()
getCauseOfBlockage in interface hudson.model.Queue.Taskpublic java.lang.String getName()
getName in interface hudson.model.Queue.Taskpublic boolean isConcurrentBuild()
public long getEstimatedDuration()
getEstimatedDuration in interface hudson.model.Queue.Taskpublic hudson.model.Label getAssignedLabel()
getAssignedLabel in interface hudson.model.Queue.Taskpublic hudson.model.Node getLastBuiltOn()
getLastBuiltOn in interface hudson.model.Queue.Taskpublic java.lang.String getBuildStatusUrl()
public hudson.model.BallColor getIconColor()
public BatchRun getLastRun()
BatchRun record.
public BatchRun getLastSuccessfulRun()
public BatchRun getLastFailedRun()
public java.lang.Iterable<BatchRun> getRuns()
public hudson.widgets.HistoryWidget createHistoryWidget()
public BatchRun createExecutable()
throws java.io.IOException
createExecutable in interface hudson.model.Queue.Taskjava.io.IOExceptionpublic java.lang.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 java.lang.Object getDynamic(java.lang.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 java.io.IOException,
javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public void doDoDelete(org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public void doCancelQueue(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletExceptionpublic java.lang.String getUrl()
getUrl in interface hudson.model.Queue.Task
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||