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 useBuildResultsSummary
instead. 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 void
addBuildErrors(List<String> errorMessages)
Deprecated.Obtain the changes that triggered the buildvoid
clearBuildErrors()
Deprecated.BuildResults
cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)
Deprecated.boolean
equals(Object o)
Deprecated.BuildChanges
getBuildChanges()
Deprecated.@NotNull Date
getBuildCompletedTimeStamp()
Deprecated.long
getBuildDurationInMilliseconds()
Deprecated.How long did the build take?@NotNull List<String>
getBuildErrors()
Deprecated.What build errors do we have?String
getBuildKey()
Deprecated.Which build are these results for?int
getBuildNumber()
Deprecated.Which build generated these resultsString
getBuildResultsKey()
Deprecated.int
getBuildReturnCode()
Deprecated.The return code of the executed process@NotNull BuildState
getBuildState()
Deprecated.What was the status of the build?@NotNull Map<String,String>
getCustomBuildData()
Deprecated.Returns a map of string keyed strings for storing arbitrary dataString
getFullKey()
Deprecated.ReasonForBuild
getReasonForBuild()
Deprecated.Date
getStartTime()
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.int
hashCode()
Deprecated.boolean
isCurrentlyQueuedOnly()
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.String
toString()
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:
getBuildChanges
in interfaceBuildResults
-
setBuildChanges
public void setBuildChanges(BuildChanges buildChanges)
Deprecated.- Specified by:
setBuildChanges
in interfaceBuildResults
-
getBuildKey
public String getBuildKey()
Deprecated.Which build are these results for?- Specified by:
getBuildKey
in interfaceBuildResults
- Returns:
- The unique key of the build
-
getFullKey
public String getFullKey()
Deprecated.- Specified by:
getFullKey
in interfaceBuildResults
-
setStartTime
public void setStartTime(Date date)
Deprecated.Specify when the build occurred.- Specified by:
setStartTime
in 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:
getStartTime
in interfaceBuildResults
- Returns:
- The build time stamp
-
getBuildCompletedTimeStamp
@NotNull public @NotNull Date 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
@NotNull public @NotNull BuildState getBuildState()
Deprecated.What was the status of the build?- Specified by:
getBuildState
in interfaceBuildResults
- Returns:
- Build status
-
setBuildState
public void setBuildState(@NotNull @NotNull BuildState buildState)
Deprecated.Set the build state- Specified by:
setBuildState
in 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:
addBuildErrors
in interfaceBuildResults
-
getBuildErrors
@NotNull public @NotNull List<String> getBuildErrors()
Deprecated.What build errors do we have?- Specified by:
getBuildErrors
in interfaceExtraBuildResultsData
- Returns:
- The errors.
-
cloneAsBuildResults
public BuildResults cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)
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
public ReasonForBuild getReasonForBuild()
Deprecated.- Specified by:
getReasonForBuild
in interfaceBuildResults
-
setReasonForBuild
public void setReasonForBuild(ReasonForBuild reasonForBuild)
Deprecated.- Specified by:
setReasonForBuild
in interfaceBuildResults
-
getCustomBuildData
@NotNull public @NotNull Map<String,String> 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
public void setCustomBuildData(Map<String,String> customBuildData)
Deprecated.- Specified by:
setCustomBuildData
in interfaceBuildResults
-
equals
public boolean equals(Object o)
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
public void setBuildKey(String buildKey)
Deprecated.- Specified by:
setBuildKey
in interfaceBuildResults
-
setSuccessfulTestResults
public void setSuccessfulTestResults(List<TestResults> mySuccessfulTestResults)
Deprecated.- Specified by:
setSuccessfulTestResults
in interfaceBuildResults
-
getSuccessfulTestResults
@NotNull public @NotNull List<TestResults> getSuccessfulTestResults()
Deprecated.- Specified by:
getSuccessfulTestResults
in interfaceBuildResults
-
getSuccessfulTestResultsMap
@NotNull public @NotNull Map<Long,TestResults> 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
-
getBuildResultsKey
public String getBuildResultsKey()
Deprecated.- Specified by:
getBuildResultsKey
in interfaceBuildResults
-
-