Package com.atlassian.bamboo.results
Class BuildResultsImpl
- java.lang.Object
-
- com.atlassian.bamboo.results.BuildResultsImpl
-
- All Implemented Interfaces:
BuildResults,ExtraBuildResultsData
@Deprecated public class BuildResultsImpl extends Object implements BuildResults
Deprecated.since 2.6 useBuildResultsSummaryinstead. Only use if test results are required.This contains a build's build results.
-
-
Constructor Summary
Constructors Constructor Description BuildResultsImpl()Deprecated.BuildResultsImpl(String buildKey, BuildState state, List<String> buildErrors, Collection<Commit> commits, ReasonForBuild reasonForBuild)Deprecated.Create the build results
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddBuildErrors(List<String> errorMessages)Deprecated.Obtain the changes that triggered the buildvoidclearBuildErrors()Deprecated.BuildResultscloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)Deprecated.booleanequals(Object o)Deprecated.BuildChangesgetBuildChanges()Deprecated.@NotNull DategetBuildCompletedTimeStamp()Deprecated.longgetBuildDurationInMilliseconds()Deprecated.How long did the build take?@NotNull List<String>getBuildErrors()Deprecated.What build errors do we have?StringgetBuildKey()Deprecated.Which build are these results for?intgetBuildNumber()Deprecated.Which build generated these resultsStringgetBuildResultsKey()Deprecated.intgetBuildReturnCode()Deprecated.The return code of the executed process@NotNull BuildStategetBuildState()Deprecated.What was the status of the build?@NotNull Map<String,String>getCustomBuildData()Deprecated.Returns a map of string keyed strings for storing arbitrary dataStringgetFullKey()Deprecated.ReasonForBuildgetReasonForBuild()Deprecated.DategetStartTime()Deprecated.What was the date and time of the build?@NotNull List<TestResults>getSuccessfulTestResults()Deprecated.@NotNull Map<Long,TestResults>getSuccessfulTestResultsMap()Deprecated.Get map of all successful test results.inthashCode()Deprecated.booleanisCurrentlyQueuedOnly()Deprecated.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.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
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 Detail
-
getBuildChanges
public BuildChanges getBuildChanges()
Deprecated.- Specified by:
getBuildChangesin interfaceBuildResults
-
setBuildChanges
public void setBuildChanges(BuildChanges buildChanges)
Deprecated.- Specified by:
setBuildChangesin interfaceBuildResults
-
getBuildKey
public String getBuildKey()
Deprecated.Which build are these results for?- Specified by:
getBuildKeyin interfaceBuildResults- Returns:
- The unique key of the build
-
getFullKey
public String getFullKey()
Deprecated.- Specified by:
getFullKeyin interfaceBuildResults
-
setStartTime
public void setStartTime(Date date)
Deprecated.Specify when the build occurred.- Specified by:
setStartTimein interfaceBuildResults- Parameters:
date- The date and time of the build
-
getStartTime
public Date getStartTime()
Deprecated.What was the date and time of the build?- Specified by:
getStartTimein interfaceBuildResults- Returns:
- The build time stamp
-
getBuildCompletedTimeStamp
@NotNull public @NotNull Date 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
@NotNull public @NotNull BuildState getBuildState()
Deprecated.What was the status of the build?- Specified by:
getBuildStatein interfaceBuildResults- Returns:
- Build status
-
setBuildState
public void setBuildState(@NotNull @NotNull BuildState buildState)Deprecated.Set the build state- Specified by:
setBuildStatein interfaceBuildResults- Parameters:
buildState- The pass/fail state of the build
-
addBuildErrors
public void addBuildErrors(List<String> errorMessages)
Deprecated.Obtain the changes that triggered the build- Specified by:
addBuildErrorsin interfaceBuildResults
-
getBuildErrors
@NotNull public @NotNull List<String> getBuildErrors()
Deprecated.What build errors do we have?- Specified by:
getBuildErrorsin interfaceExtraBuildResultsData- Returns:
- The errors.
-
cloneAsBuildResults
public BuildResults cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)
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
public ReasonForBuild getReasonForBuild()
Deprecated.- Specified by:
getReasonForBuildin interfaceBuildResults
-
setReasonForBuild
public void setReasonForBuild(ReasonForBuild reasonForBuild)
Deprecated.- Specified by:
setReasonForBuildin interfaceBuildResults
-
getCustomBuildData
@NotNull public @NotNull Map<String,String> getCustomBuildData()
Deprecated.Description copied from interface:BuildResultsReturns a map of string keyed strings for storing arbitrary data- Specified by:
getCustomBuildDatain interfaceBuildResults- Returns:
-
setCustomBuildData
public void setCustomBuildData(Map<String,String> customBuildData)
Deprecated.- Specified by:
setCustomBuildDatain interfaceBuildResults
-
equals
public boolean equals(Object o)
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
public void setBuildKey(String buildKey)
Deprecated.- Specified by:
setBuildKeyin interfaceBuildResults
-
setSuccessfulTestResults
public void setSuccessfulTestResults(List<TestResults> mySuccessfulTestResults)
Deprecated.- Specified by:
setSuccessfulTestResultsin interfaceBuildResults
-
getSuccessfulTestResults
@NotNull public @NotNull List<TestResults> getSuccessfulTestResults()
Deprecated.- Specified by:
getSuccessfulTestResultsin interfaceBuildResults
-
getSuccessfulTestResultsMap
@NotNull public @NotNull Map<Long,TestResults> 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
-
getBuildResultsKey
public String getBuildResultsKey()
Deprecated.- Specified by:
getBuildResultsKeyin interfaceBuildResults
-
-