BuildResultsSummary
instead. Only use if test results are required.@Deprecated public class BuildResultsImpl extends Object implements BuildResults
Constructor and Description |
---|
BuildResultsImpl()
Deprecated.
|
BuildResultsImpl(String buildKey,
BuildState state,
List<String> buildErrors,
Collection<Commit> commits,
ReasonForBuild reasonForBuild)
Deprecated.
Create the build results
|
Modifier and Type | Method and Description |
---|---|
void |
addBuildErrors(List<String> errorMessages)
Deprecated.
Obtain the changes that triggered the build
|
void |
clearBuildErrors()
Deprecated.
|
BuildResults |
cloneAsBuildResults(BuildContext buildContext,
ReasonForBuild reasonForBuild)
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
BuildChanges |
getBuildChanges()
Deprecated.
|
Date |
getBuildCompletedTimeStamp()
Deprecated.
|
long |
getBuildDurationInMilliseconds()
Deprecated.
How long did the build take?
|
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 results
|
String |
getBuildResultsKey()
Deprecated.
|
int |
getBuildReturnCode()
Deprecated.
The return code of the executed process
|
BuildState |
getBuildState()
Deprecated.
What was the status of the build?
|
Map<String,String> |
getCustomBuildData()
Deprecated.
Returns a map of string keyed strings for storing arbitrary data
|
String |
getFullKey()
Deprecated.
|
ReasonForBuild |
getReasonForBuild()
Deprecated.
|
Date |
getStartTime()
Deprecated.
What was the date and time of the build?
|
List<TestResults> |
getSuccessfulTestResults()
Deprecated.
|
Map<Long,TestResults> |
getSuccessfulTestResultsMap()
Deprecated.
Get map of all successful test results.
|
int |
hashCode()
Deprecated.
|
boolean |
isCurrentlyQueuedOnly()
Deprecated.
|
void |
setBuildChanges(BuildChanges buildChanges)
Deprecated.
|
void |
setBuildErrors(List<String> buildErrors)
Deprecated.
since 5.0
|
void |
setBuildKey(String buildKey)
Deprecated.
|
void |
setBuildNumber(int buildNumber)
Deprecated.
Set the build number associated with these results
|
void |
setBuildReturnCode(int buildReturnCode)
Deprecated.
|
void |
setBuildState(BuildState buildState)
Deprecated.
Set the build state
|
void |
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.
|
public BuildResultsImpl()
public BuildResultsImpl(String buildKey, BuildState state, List<String> buildErrors, Collection<Commit> commits, ReasonForBuild reasonForBuild)
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?public BuildChanges getBuildChanges()
getBuildChanges
in interface BuildResults
public void setBuildChanges(BuildChanges buildChanges)
setBuildChanges
in interface BuildResults
public String getBuildKey()
getBuildKey
in interface BuildResults
public String getFullKey()
getFullKey
in interface BuildResults
public void setStartTime(Date date)
setStartTime
in interface BuildResults
date
- The date and time of the buildpublic Date getStartTime()
getStartTime
in interface BuildResults
@NotNull public Date getBuildCompletedTimeStamp()
getBuildCompletedTimeStamp
in interface BuildResults
public void setDurationInMilliseconds(long buildDuration)
setDurationInMilliseconds
in interface BuildResults
public long getBuildDurationInMilliseconds()
getBuildDurationInMilliseconds
in interface BuildResults
@NotNull public BuildState getBuildState()
getBuildState
in interface BuildResults
public void setBuildState(@NotNull BuildState buildState)
setBuildState
in interface BuildResults
buildState
- The pass/fail state of the buildpublic void addBuildErrors(List<String> errorMessages)
addBuildErrors
in interface BuildResults
@NotNull public List<String> getBuildErrors()
getBuildErrors
in interface ExtraBuildResultsData
@Deprecated public void setBuildErrors(List<String> buildErrors)
public BuildResults cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)
cloneAsBuildResults
in interface BuildResults
public void setBuildNumber(int buildNumber)
setBuildNumber
in interface BuildResults
buildNumber
- The build numberpublic int getBuildNumber()
getBuildNumber
in interface BuildResults
public ReasonForBuild getReasonForBuild()
getReasonForBuild
in interface BuildResults
public void setReasonForBuild(ReasonForBuild reasonForBuild)
setReasonForBuild
in interface BuildResults
@NotNull public Map<String,String> getCustomBuildData()
BuildResults
getCustomBuildData
in interface BuildResults
public void setCustomBuildData(Map<String,String> customBuildData)
setCustomBuildData
in interface BuildResults
public boolean equals(Object o)
equals
in interface BuildResults
equals
in class Object
public int getBuildReturnCode()
ExtraBuildResultsData
getBuildReturnCode
in interface ExtraBuildResultsData
public void setBuildReturnCode(int buildReturnCode)
setBuildReturnCode
in interface BuildResults
public void setBuildKey(String buildKey)
setBuildKey
in interface BuildResults
public void setSuccessfulTestResults(List<TestResults> mySuccessfulTestResults)
setSuccessfulTestResults
in interface BuildResults
@NotNull public List<TestResults> getSuccessfulTestResults()
getSuccessfulTestResults
in interface BuildResults
@NotNull public Map<Long,TestResults> getSuccessfulTestResultsMap()
BuildResults
getSuccessfulTestResultsMap
in interface BuildResults
public boolean isCurrentlyQueuedOnly()
isCurrentlyQueuedOnly
in interface BuildResults
public void clearBuildErrors()
clearBuildErrors
in interface BuildResults
public String getBuildResultsKey()
getBuildResultsKey
in interface BuildResults
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.