Package jenkins.model
Interface HistoricalBuild
- All Superinterfaces:
ModelObject
- All Known Implementing Classes:
AbstractBuild
,Build
,FreeStyleBuild
,Run
@Restricted(org.kohsuke.accmod.restrictions.Beta.class)
public interface HistoricalBuild
extends ModelObject
A
Run
-like object as it might be displayed by BuildHistoryWidget
.- Since:
- 2.477
-
Method Summary
Modifier and TypeMethodDescriptionGets the list ofBuildBadgeAction
s applicable to this instance.default String
default String
Returns a human-readable description which is used on the main build page.Gets the string that says how long the build took to run.Gets the icon color for display.int
long
Get theQueue.Item.getId()
of the original queue item from where thisHistoricalBuild
instance originated.Returns the build result.When the build is scheduled.default String
Returns the length-limited description.getUrl()
Returns the URL of thisHistoricalBuild
, relative to the context root of Jenkins.boolean
Returns true if the build is not completed yet.Methods inherited from interface hudson.model.ModelObject
getDisplayName
-
Method Details
-
getNumber
int getNumber()- Returns:
- A build number
-
getUrl
Returns the URL of thisHistoricalBuild
, relative to the context root of Jenkins.- Returns:
- String like "job/foo/32/" with trailing slash but no leading slash.
-
getDescription
Returns a human-readable description which is used on the main build page.It can also be quite long, and it may use markup in a format defined by a
MarkupFormatter
.getTruncatedDescription()
may be used to retrieve a size-limited description, but it implies some limitations.- Returns:
- the build description.
-
getFullDisplayName
- Returns:
- a human-readable full display name of this build.
-
getQueueId
long getQueueId()Get theQueue.Item.getId()
of the original queue item from where thisHistoricalBuild
instance originated.- Returns:
- The queue item ID.
-
getResult
Returns the build result.When a build is
in progress
, this method returns an intermediate result.- Returns:
- The status of the build, if it has completed or some build step has set a status; may be null if the build is ongoing.
-
getParameterValues
- See Also:
-
isBuilding
boolean isBuilding()Returns true if the build is not completed yet. This includes "not started yet" state. -
getIconColor
Gets the icon color for display. -
getBuildStatusIconClassName
-
getBuildStatusUrl
-
getTimestamp
When the build is scheduled. -
getDurationString
Gets the string that says how long the build took to run. -
getBadgeActions
Gets the list ofBuildBadgeAction
s applicable to this instance. -
getTruncatedDescription
Returns the length-limited description. The method tries to take HTML tags within the description into account, but it is a best-effort attempt. Also, the method will likely not work properly if a non-HTMLMarkupFormatter
is used.- Returns:
- The length-limited description.
-