public interface IBuildResult extends IBuildResultHandle, IAuditable, IBuildItem
Modifier and Type | Field and Description |
---|---|
static IItemType |
ITEM_TYPE
The item type for this item.
|
static java.lang.String[] |
PROPERTIES_VIEW_ITEM
Just enough properties to display the
IBuildResult as a
node or item in a structured view. |
static java.lang.String |
PROPERTY_BUILD_ACTIVITIES
The name of the build contributions property.
|
static java.lang.String |
PROPERTY_BUILD_DEFINITION
The name of the build definition property.
|
static java.lang.String |
PROPERTY_BUILD_REQUESTS
The name of the build requests property.
|
static java.lang.String |
PROPERTY_BUILD_RESULT_CONTRIBUTIONS
The name of the build contributions property.
|
static java.lang.String |
PROPERTY_BUILD_START_TIME
The name of the build start time property.
|
static java.lang.String |
PROPERTY_BUILD_STATE
The name of the build state property.
|
static java.lang.String |
PROPERTY_BUILD_STATUS
The name of the build status property.
|
static java.lang.String |
PROPERTY_BUILD_TIME_TAKEN
The name of the build time taken property.
|
static java.lang.String |
PROPERTY_DELETE_ALLOWED
The name of the delete allowed property.
|
static java.lang.String |
PROPERTY_IGNORE_WARNINGS
The name of the ignore warnings property.
|
static java.lang.String |
PROPERTY_LABEL
The name of the build label property.
|
static java.lang.String |
PROPERTY_PERSONAL_BUILD
The name of the personal build property.
|
static java.lang.String |
PROPERTY_SUMMARY
The name of the build summary property.
|
static java.lang.String |
PROPERTY_TAGS
The name of the activity count property.
|
PROPERTIES_COMPLETE, PROPERTIES_REQUIRED
MERGE_PREDECESSOR_STATE_PROPERTY, PREDECESSOR_STATE_PROPERTY
CONTEXT_ID_PROPERTY, ITEM_ID_PROPERTY, MAX_LARGE_STRING_BYTES, MAX_MEDIUM_STRING_BYTES, MAX_SMALL_STRING_BYTES, MODIFIED_BY_PROPERTY, MODIFIED_PROPERTY, STATE_ID_PROPERTY
Modifier and Type | Method and Description |
---|---|
IBuildDefinitionHandle |
getBuildDefinition()
Get the build definition for the result.
|
java.util.List |
getBuildRequests()
Retrieves all the build requests that processed an action against this
build result.
|
long |
getBuildStartTime()
Get the time the build was started.
|
long |
getBuildTimeTaken()
Get the time taken by the build.
|
java.lang.String |
getLabel()
Retrieves the label of the build result.
|
java.lang.String[] |
getParsedTags()
Gets the tags field as an array of individual tags, rather than a single
string of multiple tags.
|
BuildState |
getState()
Get the state of the build result.
|
BuildStatus |
getStatus()
Get the status of the build result.
|
java.lang.String |
getTags()
Retrieves the tags of the build result, as a comma-separated string.
|
boolean |
isDeleteAllowed()
Indicates if deletion of the build result is allowed.
|
boolean |
isIgnoreWarnings()
Determines if warnings will be ignored when computing the overall status
of this build.
|
boolean |
isInSameBuildState(IBuildResult buildResult)
Determines if the build result is in the same build state as the
specified build result.
|
boolean |
isPersonalBuild()
Indicates if the build result is from a personal build.
|
void |
setBuildDefinition(IBuildDefinitionHandle buildDefinitionHandle)
Set the build definition for the build.
|
void |
setBuildStartTime(long startTime)
Set the start time of the build.
|
void |
setBuildTimeTaken(long value)
Set the time taken by the build.
|
void |
setDeleteAllowed(boolean deleteAllowed)
Sets if deletion of the build result is allowed.
|
void |
setIgnoreWarnings(boolean ignoreWarnings)
Set whether or not warnings should be ignored when computing the overall
status of this build.
|
void |
setLabel(java.lang.String label)
Set the label for the build result.
|
void |
setPersonalBuild(boolean personalBuild)
Sets whether or not the build result is from a personal build.
|
void |
setStatus(BuildStatus status)
Set the build status.
|
void |
setTags(java.lang.String tags)
Set the tags for the build result.
|
getMergePredecessorState, getPredecessorState
isNewItem
getContextId, getItemHandle, getModifiedBy, getRedactedCopy, getRequestedModified, getRequestedStateId, getStateHandle, getWorkingCopy, hasHistory, isComplete, isPropertySet, isRedactedCopy, isWorkingCopy, modified, setContextId, setRequestedModified, setRequestedStateId
equals, getAdapter, getFullState, getItemId, getItemType, getOrigin, getStateId, hasFullState, hasStateId, isAuditable, isConfigurationAware, isImmutable, isSimple, isUnmanaged, makeImmutable, protect, sameItemId, sameStateId, size
static final IItemType ITEM_TYPE
static final java.lang.String PROPERTY_BUILD_REQUESTS
static final java.lang.String PROPERTY_BUILD_RESULT_CONTRIBUTIONS
static final java.lang.String PROPERTY_BUILD_ACTIVITIES
static final java.lang.String PROPERTY_BUILD_START_TIME
static final java.lang.String PROPERTY_BUILD_TIME_TAKEN
static final java.lang.String PROPERTY_BUILD_DEFINITION
static final java.lang.String PROPERTY_LABEL
static final java.lang.String PROPERTY_BUILD_STATE
static final java.lang.String PROPERTY_BUILD_STATUS
static final java.lang.String PROPERTY_SUMMARY
static final java.lang.String PROPERTY_IGNORE_WARNINGS
static final java.lang.String PROPERTY_TAGS
static final java.lang.String PROPERTY_DELETE_ALLOWED
static final java.lang.String PROPERTY_PERSONAL_BUILD
static final java.lang.String[] PROPERTIES_VIEW_ITEM
IBuildResult
as a
node or item in a structured view.java.lang.String getLabel()
void setLabel(java.lang.String label)
label
- the label of the build result.IBuildDefinitionHandle getBuildDefinition()
void setBuildStartTime(long startTime)
startTime
- The start time in milliseconds.void setBuildDefinition(IBuildDefinitionHandle buildDefinitionHandle)
buildDefinitionHandle
- The build definition.BuildStatus getStatus()
BuildState getState()
long getBuildTimeTaken()
void setStatus(BuildStatus status)
BuildStatus.ERROR
, it cannot be set to
BuildStatus.OK
. When a result is created, its status is
initialized to BuildStatus.OK
. Throughout a build, as
contributions are added to a result, the result's status may be updated
to a more severe status, but not a less severe status.status
- The build result status.void setBuildTimeTaken(long value)
value
- the time taken, in milliseconds.boolean isInSameBuildState(IBuildResult buildResult)
buildResult
- The build result of interest to compare against.true
If the two build results are in the same
build state.java.util.List getBuildRequests()
IBuildRequestHandle
.long getBuildStartTime()
boolean isIgnoreWarnings()
void setIgnoreWarnings(boolean ignoreWarnings)
ignoreWarnings
- java.lang.String getTags()
void setTags(java.lang.String tags)
tags
- the tags of the build result.boolean isDeleteAllowed()
true
if deletion of the build result is allowed.void setDeleteAllowed(boolean deleteAllowed)
deleteAllowed
- true
if deletion of the build result is
allowed.java.lang.String[] getParsedTags()
String
"tags"; array will be empty if this build
result has not been tagged.boolean isPersonalBuild()
true
if the build result is from a personal build.void setPersonalBuild(boolean personalBuild)
personalBuild
- true
if the build result is from a personal
build.