Class Result
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.model.build.Result
-
- Direct Known Subclasses:
RestChainResult
,ResultDetails
@Expander(RestResultExpander.class) public class Result extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected RestBuildArtifactList
artifacts
protected javax.ws.rs.core.UriBuilder
baseUriBuilder
protected Integer
buildNumber
protected Integer
buildNumberForCompat
protected String
buildResultKey
protected String
buildState
protected String
buildStateForCompat
ImmutableResultsSummary
buildSummary
protected RestCommentList
comments
protected RestJiraIssueList
jiraIssues
protected RestBuildLabelList
labels
protected com.atlassian.plugins.rest.common.Link
link
protected List<String>
logFiles
protected RestPlan
plan
protected PlanRestService
planRestService
protected PlanResultKey
planResultKey
protected RestResultKey
restResultKey
static String
RESULT_KEY
protected static Supplier<ResultsSummaryVariableAccessor>
resultsSummaryAccessor
protected RestStageResultList
stages
static String
STATE
protected static Supplier<StorageLocationService>
storageLocationService
protected javax.ws.rs.core.UriInfo
uriInfo
protected RestVariableList
variables
-
Constructor Summary
Constructors Constructor Description Result()
Result(ImmutableResultsSummary buildSummary, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.UriBuilder baseUriBuilder, PlanRestService planRestService)
-
Method Summary
-
-
-
Field Detail
-
STATE
public static final String STATE
- See Also:
- Constant Field Values
-
RESULT_KEY
public static final String RESULT_KEY
- See Also:
- Constant Field Values
-
link
protected com.atlassian.plugins.rest.common.Link link
-
plan
@Expandable protected RestPlan plan
-
planResultKey
protected PlanResultKey planResultKey
-
buildResultKey
protected String buildResultKey
-
restResultKey
protected RestResultKey restResultKey
-
buildState
protected String buildState
-
buildStateForCompat
protected String buildStateForCompat
-
buildNumber
protected Integer buildNumber
-
buildNumberForCompat
protected Integer buildNumberForCompat
-
artifacts
@Expandable protected RestBuildArtifactList artifacts
-
comments
@Expandable protected RestCommentList comments
-
labels
@Expandable protected RestBuildLabelList labels
-
jiraIssues
@Expandable protected RestJiraIssueList jiraIssues
-
variables
@Expandable protected RestVariableList variables
-
stages
@Expandable protected RestStageResultList stages
-
buildSummary
public ImmutableResultsSummary buildSummary
-
uriInfo
protected javax.ws.rs.core.UriInfo uriInfo
-
baseUriBuilder
protected javax.ws.rs.core.UriBuilder baseUriBuilder
-
resultsSummaryAccessor
protected static final Supplier<ResultsSummaryVariableAccessor> resultsSummaryAccessor
-
storageLocationService
protected static final Supplier<StorageLocationService> storageLocationService
-
planRestService
protected PlanRestService planRestService
-
-
Constructor Detail
-
Result
public Result()
-
Result
public Result(ImmutableResultsSummary buildSummary, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.UriBuilder baseUriBuilder, PlanRestService planRestService)
-
-
Method Detail
-
getBuildNumber
public int getBuildNumber()
-
getLink
public com.atlassian.plugins.rest.common.Link getLink()
-
expand
public void expand()
-
getJiraIssues
protected RestJiraIssueList getJiraIssues() throws CredentialsRequiredContextException
-
getChanges
protected RestChangeList getChanges()
-
getComments
protected RestCommentList getComments()
-
getVariables
protected RestVariableList getVariables()
-
getVariables
protected RestVariableList getVariables(Function<ImmutableResultsSummary,Collection<VariableDefinitionContext>> variableStateProvider)
-
getLabels
protected RestBuildLabelList getLabels()
-
getArtifacts
protected RestBuildArtifactList getArtifacts()
-
getBuildState
public String getBuildState()
-
setStageResult
public void setStageResult(ChainStageResult stageResult)
-
setExpand
public void setExpand(String expand)
Basic getters and setters
-
setParentLink
public void setParentLink(com.atlassian.plugins.rest.common.Link parentLink)
-
setPlanName
public void setPlanName(String planName)
-
setPlanResultKey
public void setPlanResultKey(PlanResultKey planResultKey)
-
setBuildNumber
public void setBuildNumber(Integer buildNumber)
-
setLink
public void setLink(com.atlassian.plugins.rest.common.Link link)
-
setBuildState
public void setBuildState(String buildState)
-
setArtifacts
public void setArtifacts(RestBuildArtifactList artifacts)
-
setComments
public void setComments(RestCommentList comments)
-
setLabels
public void setLabels(RestBuildLabelList labels)
-
setJiraIssues
public void setJiraIssues(RestJiraIssueList jiraIssues)
-
setVariables
public void setVariables(RestVariableList variables)
-
setProjectName
public void setProjectName(String projectName)
-
setStage
public void setStage(String stage)
-
setLifeCycleState
public void setLifeCycleState(String lifeCycleState)
-
setId
public void setId(long id)
-
setBuildStartedTime
public void setBuildStartedTime(Date buildStartedTime)
-
setPrettyBuildStartedTime
public void setPrettyBuildStartedTime(String prettyBuildStartedTime)
-
setBuildCompletedTime
public void setBuildCompletedTime(Date buildCompletedTime)
-
setPrettyBuildCompletedTime
public void setPrettyBuildCompletedTime(String prettyBuildCompletedTime)
-
setBuildDurationInSeconds
public void setBuildDurationInSeconds(Long buildDurationInSeconds)
-
setBuildDuration
public void setBuildDuration(Long buildDuration)
-
setBuildDurationDescription
public void setBuildDurationDescription(String buildDurationDescription)
-
setBuildRelativeTime
public void setBuildRelativeTime(String buildRelativeTime)
-
setQueueStartedTime
public void setQueueStartedTime(Date queueStartedTime)
-
setPrettyQueueStartedTime
public void setPrettyQueueStartedTime(String prettyQueueStartedTime)
-
setQueueTimeInSeconds
public void setQueueTimeInSeconds(Long queueTimeInSeconds)
-
setQueueDuration
public void setQueueDuration(Long queueDuration)
-
setPrettyQueueDuration
public void setPrettyQueueDuration(String prettyQueueDuration)
-
setVcsUpdateStartedTime
public void setVcsUpdateStartedTime(Date vcsUpdateStartedTime)
-
setPrettyVcsUpdateStartedTime
public void setPrettyVcsUpdateStartedTime(String prettyVcsUpdateStartedTime)
-
setVcsUpdateInSeconds
public void setVcsUpdateInSeconds(Long vcsUpdateInSeconds)
-
setVcsUpdateDuration
public void setVcsUpdateDuration(Long vcsUpdateDuration)
-
setPrettyVcsUpdateDuration
public void setPrettyVcsUpdateDuration(String prettyVcsUpdateDuration)
-
setVcsRevisionKey
public void setVcsRevisionKey(String vcsRevisionKey)
-
setBuildTestSummary
public void setBuildTestSummary(String buildTestSummary)
-
setSuccessfulTestCount
public void setSuccessfulTestCount(Integer successfulTestCount)
-
setFailedTestCount
public void setFailedTestCount(Integer failedTestCount)
-
setQuarantinedTestCount
public void setQuarantinedTestCount(Integer quarantinedTestCount)
-
setSkippedTestCount
public void setSkippedTestCount(Integer skippedTestCount)
-
setOnceOff
public void setOnceOff(Boolean onceOff)
-
setRestartCount
public void setRestartCount(Integer restartCount)
-
setContinuable
public void setContinuable(Boolean continuable)
-
setRestartable
public void setRestartable(Boolean restartable)
-
setBuildReason
public void setBuildReason(String buildReason)
-
setHasExecutableAgents
public void setHasExecutableAgents(Boolean hasExecutableAgents)
-
setStages
public void setStages(RestStageResultList stages)
-
-