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
ConstructorsConstructorDescriptionDeprecated.BuildResultsImpl(String buildKey, BuildState state, List<String> buildErrors, Collection<Commit> commits, ReasonForBuild reasonForBuild) Deprecated.Create the build results -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBuildErrors(List<String> errorMessages) Deprecated.Obtain the changes that triggered the buildvoidDeprecated.cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild) Deprecated.booleanDeprecated.Deprecated.@NotNull DateDeprecated.longDeprecated.How long did the build take?Deprecated.What build errors do we have?Deprecated.Which build are these results for?intDeprecated.Which build generated these resultsDeprecated.intDeprecated.The return code of the executed process@NotNull BuildStateDeprecated.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.inthashCode()Deprecated.booleanDeprecated.voidsetBuildChanges(BuildChanges buildChanges) Deprecated.voidsetBuildKey(String buildKey) Deprecated.voidsetBuildNumber(int buildNumber) Deprecated.Set the build number associated with these resultsvoidsetBuildReturnCode(int buildReturnCode) Deprecated.voidsetBuildState(@NotNull BuildState buildState) Deprecated.Set the build statevoidsetCustomBuildData(Map<String, String> customBuildData) Deprecated.voidsetDurationInMilliseconds(long buildDuration) Deprecated.voidsetReasonForBuild(ReasonForBuild reasonForBuild) Deprecated.voidsetStartTime(Date date) Deprecated.Specify when the build occurred.voidsetSuccessfulTestResults(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:
getBuildChangesin interfaceBuildResults
-
setBuildChanges
Deprecated.- Specified by:
setBuildChangesin interfaceBuildResults
-
getBuildKey
Deprecated.Which build are these results for?- Specified by:
getBuildKeyin interfaceBuildResults- Returns:
- The unique key of the build
-
getFullKey
Deprecated.- Specified by:
getFullKeyin interfaceBuildResults
-
setStartTime
Deprecated.Specify when the build occurred.- Specified by:
setStartTimein interfaceBuildResults- Parameters:
date- The date and time of the build
-
getStartTime
Deprecated.What was the date and time of the build?- Specified by:
getStartTimein interfaceBuildResults- Returns:
- The build time stamp
-
getBuildCompletedTimeStamp
Deprecated.- Specified by:
getBuildCompletedTimeStampin interfaceBuildResults
-
setDurationInMilliseconds
public void setDurationInMilliseconds(long buildDuration) Deprecated.- Specified by:
setDurationInMillisecondsin interfaceBuildResults
-
getBuildDurationInMilliseconds
public long getBuildDurationInMilliseconds()Deprecated.How long did the build take?- Specified by:
getBuildDurationInMillisecondsin interfaceBuildResults- Returns:
- The time in milliseconds
-
getBuildState
Deprecated.What was the status of the build?- Specified by:
getBuildStatein interfaceBuildResults- Returns:
- Build status
-
setBuildState
Deprecated.Set the build state- Specified by:
setBuildStatein interfaceBuildResults- Parameters:
buildState- The pass/fail state of the build
-
addBuildErrors
Deprecated.Obtain the changes that triggered the build- Specified by:
addBuildErrorsin interfaceBuildResults
-
getBuildErrors
Deprecated.What build errors do we have?- Specified by:
getBuildErrorsin interfaceExtraBuildResultsData- Returns:
- The errors.
-
cloneAsBuildResults
Deprecated.- Specified by:
cloneAsBuildResultsin interfaceBuildResults
-
setBuildNumber
public void setBuildNumber(int buildNumber) Deprecated.Set the build number associated with these results- Specified by:
setBuildNumberin interfaceBuildResults- Parameters:
buildNumber- The build number
-
getBuildNumber
public int getBuildNumber()Deprecated.Which build generated these results- Specified by:
getBuildNumberin interfaceBuildResults- Returns:
- The build number
-
getReasonForBuild
Deprecated.- Specified by:
getReasonForBuildin interfaceBuildResults
-
setReasonForBuild
Deprecated.- Specified by:
setReasonForBuildin interfaceBuildResults
-
getCustomBuildData
Deprecated.Description copied from interface:BuildResultsReturns a map of string keyed strings for storing arbitrary data- Specified by:
getCustomBuildDatain interfaceBuildResults- Returns:
-
setCustomBuildData
Deprecated.- Specified by:
setCustomBuildDatain interfaceBuildResults
-
equals
Deprecated.- Specified by:
equalsin interfaceBuildResults- Overrides:
equalsin classObject
-
getBuildReturnCode
public int getBuildReturnCode()Deprecated.Description copied from interface:ExtraBuildResultsDataThe return code of the executed process- Specified by:
getBuildReturnCodein interfaceExtraBuildResultsData- Returns:
- default of 0
-
setBuildReturnCode
public void setBuildReturnCode(int buildReturnCode) Deprecated.- Specified by:
setBuildReturnCodein interfaceBuildResults
-
setBuildKey
Deprecated.- Specified by:
setBuildKeyin interfaceBuildResults
-
setSuccessfulTestResults
Deprecated.- Specified by:
setSuccessfulTestResultsin interfaceBuildResults
-
getSuccessfulTestResults
Deprecated.- Specified by:
getSuccessfulTestResultsin interfaceBuildResults
-
getSuccessfulTestResultsMap
Deprecated.Description copied from interface:BuildResultsGet map of all successful test results. Test case id is map key.- Specified by:
getSuccessfulTestResultsMapin interfaceBuildResults- Returns:
- map of id to test result, empty if there are none.
-
isCurrentlyQueuedOnly
public boolean isCurrentlyQueuedOnly()Deprecated.- Specified by:
isCurrentlyQueuedOnlyin interfaceBuildResults
-
clearBuildErrors
public void clearBuildErrors()Deprecated.- Specified by:
clearBuildErrorsin interfaceBuildResults
-
hashCode
public int hashCode()Deprecated. -
getBuildResultsKey
Deprecated.- Specified by:
getBuildResultsKeyin interfaceBuildResults
-
toString
Deprecated.
-
BuildResultsSummaryinstead. Only use if test results are required.