public abstract class AsyncRun<P extends AsyncJob<P,R>,R extends AsyncRun<P,R>>
extends hudson.model.Run<P,R>
implements hudson.model.Queue.Executable
hudson.model.Run.Artifact, hudson.model.Run.ArtifactList, hudson.model.Run.KeepLogBuildBadge, hudson.model.Run.RedirectUp, hudson.model.Run.Runner, hudson.model.Run.RunnerAbortedException, hudson.model.Run.Summary| Modifier | Constructor and Description |
|---|---|
protected |
AsyncRun(P job) |
protected |
AsyncRun(P job,
Calendar timestamp) |
protected |
AsyncRun(P project,
File buildDir) |
protected |
AsyncRun(P job,
long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
hudson.model.TaskListener |
createListener()
For writing stuff from asynchronous tasks.
|
abstract void |
doStop(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Aborts the build if it's indeed in progress.
|
hudson.model.BallColor |
getIconColor() |
boolean |
isAsyncCompleted()
Indicates if the actual asynchronous portion of the work has been completed
(by invoking
markCompleted(Result). |
boolean |
isBuilding() |
void |
markCompleted(hudson.model.Result result)
Marks the asynchronous task complete.
|
addAction, checkPermission, compareTo, delete, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildStatusSummary, getBuildStatusUrl, getCause, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDescriptorByName, getDisplayName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getId, getIDFormatter, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNextBuild, getNumber, getOneOffExecutor, getParent, getPreviousBuild, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getResult, getRootDir, getSearchUrl, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getTruncatedDescription, getUrl, getWhyKeepLog, hasCustomDisplayName, hasntStartedYet, hasPermission, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onLoad, onStartBuilding, reload, run, save, setDescription, setDisplayName, setResult, submit, toString, writeLogTodoContextMenu, getAction, getAction, getActions, getActionsgetSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendErrorprotected AsyncRun(P job) throws IOException
IOExceptionprotected AsyncRun(P job, long timestamp)
protected AsyncRun(P project, File buildDir) throws IOException
IOExceptionpublic void markCompleted(hudson.model.Result result)
throws IOException
IOExceptionpublic boolean isBuilding()
public boolean isAsyncCompleted()
markCompleted(Result).public hudson.model.BallColor getIconColor()
public hudson.model.TaskListener createListener()
throws IOException
IOExceptionpublic abstract void doStop(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionCopyright © 2004-2012. All Rights Reserved.