public final class BatchRun extends hudson.model.Actionable implements hudson.model.Queue.Executable, Comparable<BatchRun>
BatchTask execution.| Modifier and Type | Field and Description |
|---|---|
protected long |
duration
Number of milli-seconds it took to run this build.
|
int |
id
Unique number that identifie this record among
BatchRunAction. |
protected BatchRunAction |
parent |
protected hudson.model.Result |
result
Build result.
|
String |
taskName
Pointer that connects us back to
BatchTask |
Calendar |
timestamp |
| Modifier | Constructor and Description |
|---|---|
protected |
BatchRun(Calendar timestamp,
BatchRunAction parent,
int id,
BatchTask task) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BatchRun that)
Newer records should appear before older records.
|
void |
doProgressiveLog(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Handles incremental log output.
|
String |
getBuildNumber() |
String |
getBuildStatusUrl() |
String |
getDisplayName() |
long |
getDuration()
Gets the millisecond it took to build.
|
String |
getDurationString()
Gets the string that says how long the build took to run.
|
long |
getEstimatedDuration() |
hudson.model.BallColor |
getIconColor()
Gets the icon color for display.
|
File |
getLogFile()
Gets the log file that stores the execution result.
|
BatchRun |
getNext()
Obtains the next execution record, or null if no such record is available.
|
String |
getNumber() |
BatchRunAction |
getOwner() |
BatchTask |
getParent() |
BatchRun |
getPrevious()
Obtains the previous execution record, or null if no such record is available.
|
hudson.model.Result |
getResult() |
String |
getSearchUrl() |
String |
getTimestampString()
Gets the string that says how long since this run has started.
|
String |
getUrl()
Gets the URL (under the context root) that points to this record.
|
boolean |
isRunning()
Is this task still running?
|
void |
run() |
String |
toString() |
addAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, replaceActionprotected hudson.model.Result result
public final Calendar timestamp
protected transient BatchRunAction parent
public final int id
BatchRunAction.public final String taskName
BatchTaskgetParent()protected long duration
protected BatchRun(Calendar timestamp, BatchRunAction parent, int id, BatchTask task)
public hudson.model.Result getResult()
public boolean isRunning()
public String getTimestampString()
public File getLogFile()
public BatchTask getParent()
getParent in interface hudson.model.Queue.Executablepublic BatchRunAction getOwner()
public hudson.model.BallColor getIconColor()
public String getBuildStatusUrl()
public BatchRun getPrevious()
public BatchRun getNext()
public String getUrl()
public String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItempublic String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectpublic String getNumber()
public String getBuildNumber()
public String getDurationString()
@Exported public long getDuration()
public void run()
public void doProgressiveLog(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
IOExceptionpublic String toString()
public int compareTo(BatchRun that)
compareTo in interface Comparable<BatchRun>public long getEstimatedDuration()
getEstimatedDuration in interface hudson.model.Queue.ExecutableCopyright © 2016. All rights reserved.