Package com.atlassian.bamboo.results
Class BuildResultsImpl
java.lang.Object
com.atlassian.bamboo.results.BuildResultsImpl
- All Implemented Interfaces:
BuildResults
,ExtraBuildResultsData
Deprecated.
This contains a build's build results.
-
Constructor Summary
ConstructorDescriptionDeprecated.BuildResultsImpl
(String buildKey, BuildState state, List<String> buildErrors, Collection<Commit> commits, ReasonForBuild reasonForBuild) Deprecated.Create the build results -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBuildErrors
(List<String> errorMessages) Deprecated.Obtain the changes that triggered the buildvoid
Deprecated.cloneAsBuildResults
(BuildContext buildContext, ReasonForBuild reasonForBuild) Deprecated.boolean
Deprecated.Deprecated.@NotNull Date
Deprecated.long
Deprecated.How long did the build take?Deprecated.What build errors do we have?Deprecated.Which build are these results for?int
Deprecated.Which build generated these resultsDeprecated.int
Deprecated.The return code of the executed process@NotNull BuildState
Deprecated.What was the status of the build?Deprecated.Returns a map of string keyed strings for storing arbitrary dataDeprecated.Deprecated.Deprecated.What was the date and time of the build?@NotNull List<TestResults>
Deprecated.@NotNull Map<Long,
TestResults> Deprecated.Get map of all successful test results.int
hashCode()
Deprecated.boolean
Deprecated.void
setBuildChanges
(BuildChanges buildChanges) Deprecated.void
setBuildKey
(String buildKey) Deprecated.void
setBuildNumber
(int buildNumber) Deprecated.Set the build number associated with these resultsvoid
setBuildReturnCode
(int buildReturnCode) Deprecated.void
setBuildState
(@NotNull BuildState buildState) Deprecated.Set the build statevoid
setCustomBuildData
(Map<String, String> customBuildData) Deprecated.void
setDurationInMilliseconds
(long buildDuration) Deprecated.void
setReasonForBuild
(ReasonForBuild reasonForBuild) Deprecated.void
setStartTime
(Date date) Deprecated.Specify when the build occurred.void
setSuccessfulTestResults
(List<TestResults> mySuccessfulTestResults) Deprecated.toString()
Deprecated.
-
Constructor Details
-
BuildResultsImpl
public BuildResultsImpl()Deprecated. -
BuildResultsImpl
public BuildResultsImpl(String buildKey, BuildState state, List<String> buildErrors, Collection<Commit> commits, ReasonForBuild reasonForBuild) Deprecated.Create the build results- Parameters:
buildKey
- The unique key of the buildstate
- Was thebuild successful?buildErrors
- Errors generated by the buildercommits
- The changes that triggered the buildreasonForBuild
- Why are we building the build?
-
-
Method Details
-
getBuildChanges
Deprecated.- Specified by:
getBuildChanges
in interfaceBuildResults
-
setBuildChanges
Deprecated.- Specified by:
setBuildChanges
in interfaceBuildResults
-
getBuildKey
Deprecated.Which build are these results for?- Specified by:
getBuildKey
in interfaceBuildResults
- Returns:
- The unique key of the build
-
getFullKey
Deprecated.- Specified by:
getFullKey
in interfaceBuildResults
-
setStartTime
Deprecated.Specify when the build occurred.- Specified by:
setStartTime
in interfaceBuildResults
- Parameters:
date
- The date and time of the build
-
getStartTime
Deprecated.What was the date and time of the build?- Specified by:
getStartTime
in interfaceBuildResults
- Returns:
- The build time stamp
-
getBuildCompletedTimeStamp
Deprecated.- Specified by:
getBuildCompletedTimeStamp
in interfaceBuildResults
-
setDurationInMilliseconds
public void setDurationInMilliseconds(long buildDuration) Deprecated.- Specified by:
setDurationInMilliseconds
in interfaceBuildResults
-
getBuildDurationInMilliseconds
public long getBuildDurationInMilliseconds()Deprecated.How long did the build take?- Specified by:
getBuildDurationInMilliseconds
in interfaceBuildResults
- Returns:
- The time in milliseconds
-
getBuildState
Deprecated.What was the status of the build?- Specified by:
getBuildState
in interfaceBuildResults
- Returns:
- Build status
-
setBuildState
Deprecated.Set the build state- Specified by:
setBuildState
in interfaceBuildResults
- Parameters:
buildState
- The pass/fail state of the build
-
addBuildErrors
Deprecated.Obtain the changes that triggered the build- Specified by:
addBuildErrors
in interfaceBuildResults
-
getBuildErrors
Deprecated.What build errors do we have?- Specified by:
getBuildErrors
in interfaceExtraBuildResultsData
- Returns:
- The errors.
-
cloneAsBuildResults
Deprecated.- Specified by:
cloneAsBuildResults
in interfaceBuildResults
-
setBuildNumber
public void setBuildNumber(int buildNumber) Deprecated.Set the build number associated with these results- Specified by:
setBuildNumber
in interfaceBuildResults
- Parameters:
buildNumber
- The build number
-
getBuildNumber
public int getBuildNumber()Deprecated.Which build generated these results- Specified by:
getBuildNumber
in interfaceBuildResults
- Returns:
- The build number
-
getReasonForBuild
Deprecated.- Specified by:
getReasonForBuild
in interfaceBuildResults
-
setReasonForBuild
Deprecated.- Specified by:
setReasonForBuild
in interfaceBuildResults
-
getCustomBuildData
Deprecated.Description copied from interface:BuildResults
Returns a map of string keyed strings for storing arbitrary data- Specified by:
getCustomBuildData
in interfaceBuildResults
- Returns:
-
setCustomBuildData
Deprecated.- Specified by:
setCustomBuildData
in interfaceBuildResults
-
equals
Deprecated.- Specified by:
equals
in interfaceBuildResults
- Overrides:
equals
in classObject
-
getBuildReturnCode
public int getBuildReturnCode()Deprecated.Description copied from interface:ExtraBuildResultsData
The return code of the executed process- Specified by:
getBuildReturnCode
in interfaceExtraBuildResultsData
- Returns:
- default of 0
-
setBuildReturnCode
public void setBuildReturnCode(int buildReturnCode) Deprecated.- Specified by:
setBuildReturnCode
in interfaceBuildResults
-
setBuildKey
Deprecated.- Specified by:
setBuildKey
in interfaceBuildResults
-
setSuccessfulTestResults
Deprecated.- Specified by:
setSuccessfulTestResults
in interfaceBuildResults
-
getSuccessfulTestResults
Deprecated.- Specified by:
getSuccessfulTestResults
in interfaceBuildResults
-
getSuccessfulTestResultsMap
Deprecated.Description copied from interface:BuildResults
Get map of all successful test results. Test case id is map key.- Specified by:
getSuccessfulTestResultsMap
in interfaceBuildResults
- Returns:
- map of id to test result, empty if there are none.
-
isCurrentlyQueuedOnly
public boolean isCurrentlyQueuedOnly()Deprecated.- Specified by:
isCurrentlyQueuedOnly
in interfaceBuildResults
-
clearBuildErrors
public void clearBuildErrors()Deprecated.- Specified by:
clearBuildErrors
in interfaceBuildResults
-
hashCode
public int hashCode()Deprecated. -
getBuildResultsKey
Deprecated.- Specified by:
getBuildResultsKey
in interfaceBuildResults
-
toString
Deprecated.
-
BuildResultsSummary
instead. Only use if test results are required.