Package com.atlassian.bamboo.build
Class PlanResultsAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.bamboo.ww2.BambooActionSupport
-
- com.atlassian.bamboo.ww2.actions.PlanActionSupport
-
- com.atlassian.bamboo.build.PlanResultsAction
-
- All Implemented Interfaces:
JsonStreamingAction
,ErrorCollection
,BambooSessionAware
,NavigationAware
,DomainObjectSecurityAware
,GlobalReadSecurityAware
,PlanReadSecurityAware
,PlanAware
,ProjectAware
,ResultsSummaryAware
,ReturnUrlAware
,com.atlassian.core.i18n.I18nTextProvider
,com.atlassian.struts.TextProvider
,com.atlassian.struts.ValidationAware
,com.opensymphony.xwork.ValidationAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
- Direct Known Subclasses:
BuildResultsAction
,ChainResultsAction
,EditCommentAction
,GotoBuildResult
,LinkTestToJiraIssueAction
,RemoveBuildArtifacts
,UnlinkTestToJiraIssueAction
,ViewJiraIssues
,ViewTrackingForBuildResult
public class PlanResultsAction extends PlanActionSupport implements ResultsSummaryAware, PlanReadSecurityAware
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentManager
agentManager
protected ArtifactLinkManager
artifactLinkManager
protected AuditLogService
auditLogService
protected BuildStatusHelper
buildStatusHelper
protected CustomVariableContext
customVariableContext
protected ExtendedAuthorManager
extendedAuthorManager
protected JiraIssueManager
jiraIssueManager
protected JiraIssueUtils
jiraIssueUtils
protected List<ResultsSummary>
neighbouringSummaries
protected RepositoryDefinitionManager
repositoryDefinitionManager
protected ResultsSummary
resultsSummary
protected TestQuarantineManager
testQuarantineManager
protected TestsManager
testsManager
protected TriggerManager
triggerManager
protected VcsRepositoryViewerManager
vcsRepositoryViewerManager
-
Fields inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildNumber, jiraApplinksService, resultsSummaryManager, vcsRepositoryConfigurationService
-
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, administrationConfigurationPersister, AGGREGATE_URL_PATTERN, authenticationContext, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, deploymentProjectService, featureManager, PAGE_NOT_FOUND, PLAN_KEY_CONTEXT, planExecutionManager, planManager, pluginAccessor, projectManager, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description PlanResultsAction()
-
Method Summary
-
Methods inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
getBuildKey, getCurrentlyBuildingPlans, getErrorAccessor, getFirstNotRunnableStage, getImmutablePlan, getJobsWebItemsForSection, getMutablePlan, getPlan, getPlanKey, getPlanResultKey, getProject, getResultsSummaryManager, getTypedPlanKey, getTypedPlanResultKey, isContinuable, isJiraApplicationLinkDefined, isRestartable, planNotFound, setBuildContextFactory, setBuildKey, setDecoratingErrorAccessor, setJiraApplinksService, setPlan, setPlanExecutionManager, setPlanKey, setPlanResultKey, setResultsSummaryManager, setVcsRepositoryConfigurationService
-
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getAvailableCategoryJson, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getElasticConfig, getErrorMessages, getErrors, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedActionWarnings, getHelpPanels, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNodeLifecycleState, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getRandomString, getReturnUrl, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, getTextWithArgs, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasActionWarnings, hasAdminPermission, hasAnyErrors, hasBuilds, hasEntityPermission, hasGlobalAdminPermission, hasGlobalPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasProjectPermission, hasProjectPermission, hasRestrictedAdminPermission, hasResultKeyReadPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDecorator, setDeploymentProjectService, setDocumentationLinkProvider, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLocalizedTextProvider, setNavigationContext, setNodeLifecycleProvider, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setWebInterfaceManager, streamJson, toJson, toJson
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFormatted, getLocale, getLocaleProvider, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getAllErrorMessages
-
Methods inherited from interface com.atlassian.bamboo.ww2.aware.PlanAware
getImmutablePlan, getMutablePlan, getPlan, setPlan
-
-
-
-
Field Detail
-
neighbouringSummaries
protected List<ResultsSummary> neighbouringSummaries
-
extendedAuthorManager
protected ExtendedAuthorManager extendedAuthorManager
-
triggerManager
protected TriggerManager triggerManager
-
agentManager
protected AgentManager agentManager
-
jiraIssueManager
protected JiraIssueManager jiraIssueManager
-
jiraIssueUtils
protected JiraIssueUtils jiraIssueUtils
-
testsManager
protected TestsManager testsManager
-
auditLogService
protected AuditLogService auditLogService
-
testQuarantineManager
protected TestQuarantineManager testQuarantineManager
-
buildStatusHelper
protected BuildStatusHelper buildStatusHelper
-
resultsSummary
protected ResultsSummary resultsSummary
-
artifactLinkManager
protected ArtifactLinkManager artifactLinkManager
-
repositoryDefinitionManager
protected RepositoryDefinitionManager repositoryDefinitionManager
-
vcsRepositoryViewerManager
protected VcsRepositoryViewerManager vcsRepositoryViewerManager
-
customVariableContext
protected CustomVariableContext customVariableContext
-
-
Method Detail
-
getResultsSummary
public ResultsSummary getResultsSummary()
- Specified by:
getResultsSummary
in interfaceResultsSummaryAware
-
setResultsSummary
public void setResultsSummary(ResultsSummary buildResults)
- Specified by:
setResultsSummary
in interfaceResultsSummaryAware
-
getPreviousFailedStageResult
@Nullable public @Nullable ChainStageResult getPreviousFailedStageResult(BuildResultsSummary buildResultsSummary)
returns the previousChainStageResult
that failed before theBuildResultsSummary
failed. Returns null if noChainStageResult
failed.- Parameters:
buildResultsSummary
-- Returns:
-
getStageToContinue
@Nullable public @Nullable StageIdentifier getStageToContinue()
-
getNeighbouringSummaries
@NotNull public @NotNull List<ResultsSummary> getNeighbouringSummaries()
-
getTriggerReasonLongDescriptionHtml
public String getTriggerReasonLongDescriptionHtml(ResultsSummary resultsSummary)
-
getTriggerReasonLongDescriptionText
public String getTriggerReasonLongDescriptionText(ResultsSummary resultsSummary)
-
getLinkedJiraIssues
public Collection<LinkedJiraIssue> getLinkedJiraIssues()
-
getLinkedJiraIssue
@NotNull public @NotNull Pair<LinkedJiraIssue,URI> getLinkedJiraIssue(String issueKey)
returns jira issue details for the given issueKey, or - in case of OAuth authentication required - URI for the login dance
-
getLinkedJiraIssueForTestCase
@Nullable public @Nullable String getLinkedJiraIssueForTestCase(long testCaseId)
-
getSizeBoundedLinkedJiraIssues
public Collection<LinkedJiraIssue> getSizeBoundedLinkedJiraIssues(int size)
-
isHideJiraTeaser
public boolean isHideJiraTeaser()
-
getShortJiraIssues
public List<LinkedJiraIssue> getShortJiraIssues()
Returns a shortened (default length) list of jira issues and controls logic behind which are shown * Fixed issues are given preference- Returns:
-
getShortJiraIssues
public List<LinkedJiraIssue> getShortJiraIssues(int numberNeeded)
Returns a required length list of jira issues and controls logic behind which are shown * Fixed issues are given preferenceThis is needed so that only the required number of JIRA Issues will be retrieved from the jira server
- Parameters:
numberNeeded
-- Returns:
-
getJiraIssues
public List<LinkedJiraIssue> getJiraIssues()
-
isOauthAuthenticationRequired
public boolean isOauthAuthenticationRequired()
-
getOauthLoginDanceUrl
public URI getOauthLoginDanceUrl()
-
getIssueDetails
protected Iterable<LinkedJiraIssue> getIssueDetails(Iterable<LinkedJiraIssue> linkedIssues)
-
setJiraIssueManager
public void setJiraIssueManager(JiraIssueManager jiraIssueManager)
-
setExtendedAuthorManager
public void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
-
setTriggerManager
public void setTriggerManager(TriggerManager triggerManager)
-
setJiraIssueUtils
public void setJiraIssueUtils(JiraIssueUtils jiraIssueUtils)
-
setAgentManager
public void setAgentManager(AgentManager agentManager)
-
setTestsManager
public void setTestsManager(TestsManager testsManager)
-
getBuildNumber
public Integer getBuildNumber()
- Overrides:
getBuildNumber
in classPlanActionSupport
-
setBuildNumber
public void setBuildNumber(Integer buildNumber)
- Overrides:
setBuildNumber
in classPlanActionSupport
-
getRequestedBuildNumber
public Integer getRequestedBuildNumber()
- Returns:
- build number as requested by call, without verification against actual plan result build number range
-
getFailStartDate
public Date getFailStartDate()
-
isAuditLoggingEnabled
public boolean isAuditLoggingEnabled()
-
isConfigChanged
public boolean isConfigChanged()
-
hasDetachedResults
public boolean hasDetachedResults()
-
getTestCaseResultOnMasterBranch
@Nullable public @Nullable TestCaseResult getTestCaseResultOnMasterBranch(@Nullable @Nullable TestCaseResult testCaseResult)
-
isSortByDuration
public boolean isSortByDuration()
-
setSortByDuration
public void setSortByDuration(boolean b)
-
getBuildStatusHelper
public BuildStatusHelper getBuildStatusHelper()
-
setAuditLogService
public void setAuditLogService(AuditLogService auditLogService)
-
getExecutionStatus
public ExecutionStatus getExecutionStatus()
-
getChainExecution
@Nullable public @Nullable ChainExecution getChainExecution()
-
setChainExecutionManager
public void setChainExecutionManager(ChainExecutionManager chainExecutionManager)
-
setTestQuarantineManager
public void setTestQuarantineManager(TestQuarantineManager testQuarantineManager)
-
buildWebPanelContext
@NotNull protected @NotNull Map<String,Object> buildWebPanelContext(@NotNull @NotNull String location)
Description copied from class:BambooActionSupport
Builds a context suitable for renderingWebPanel
s viaFreemarkerContext.getWebPanels(String)
In the future the results of this method may be cached- Overrides:
buildWebPanelContext
in classPlanActionSupport
- Returns:
- context
-
validateResultSummary
protected boolean validateResultSummary()
-
getSkippedCommitsCount
public int getSkippedCommitsCount(@NotNull @NotNull ResultsSummary resultsSummary)
-
getRepositoryData
public VcsRepositoryData getRepositoryData(@NotNull @NotNull RepositoryChangeset repositoryChangeset)
-
getRepositoryViewer
@Nullable public @Nullable VcsRepositoryViewer getRepositoryViewer(@NotNull @NotNull VcsRepositoryData repositoryData)
-
getUrlsForChangeset
@NotNull public @NotNull Map<String,String> getUrlsForChangeset(@NotNull @NotNull RepositoryChangeset repositoryChangeset)
-
getUrlForCommitId
@Nullable public @Nullable String getUrlForCommitId(@Nullable @Nullable String commitId, @NotNull @NotNull VcsRepositoryData repositoryData)
-
getRepositoryChangesetsWithNotBlankRevision
public com.google.common.collect.ImmutableList<RepositoryChangeset> getRepositoryChangesetsWithNotBlankRevision(@NotNull @NotNull ResultsSummary resultsSummary)
-
setCreateIssueAppLinkId
public void setCreateIssueAppLinkId(String createIssueAppLinkId)
-
getCreateIssueAppLinkId
public String getCreateIssueAppLinkId()
-
getNewIssueKey
public String getNewIssueKey()
-
setNewIssueKey
public void setNewIssueKey(String newIssueKey)
-
getMaskedVariables
public List<VariableDefinitionContext> getMaskedVariables()
-
getManualVariables
@NotNull public @NotNull List<VariableDefinitionContext> getManualVariables()
-
isTestQuarantineEnabled
public boolean isTestQuarantineEnabled()
-
isTestQuarantineExpiryOverridable
public boolean isTestQuarantineExpiryOverridable()
-
getTestQuarantineExpiryDuration
public int getTestQuarantineExpiryDuration()
-
getTestQuarantineExpiryPeriod
public String getTestQuarantineExpiryPeriod()
-
getArtifactLinkUrl
@Nullable public final @Nullable String getArtifactLinkUrl(ArtifactLink artifactLink)
-
getArtifactSizeDescription
@NotNull public final @NotNull String getArtifactSizeDescription(ArtifactLink artifactLink)
-
isChain
public boolean isChain()
-
setArtifactLinkManager
public void setArtifactLinkManager(ArtifactLinkManager artifactLinkManager)
-
setRepositoryDefinitionManager
public void setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager)
- Overrides:
setRepositoryDefinitionManager
in classPlanActionSupport
-
setVcsRepositoryViewerManager
public void setVcsRepositoryViewerManager(VcsRepositoryViewerManager vcsRepositoryViewerManager)
-
setCustomVariableContext
public void setCustomVariableContext(CustomVariableContext customVariableContext)
-
setCommentManager
public void setCommentManager(CommentManager commentManager)
-
setResultsSummaryVariableAccessor
public void setResultsSummaryVariableAccessor(ResultsSummaryVariableAccessor resultsSummaryVariableAccessor)
-
getSecuredDomainObject
public Object getSecuredDomainObject()
- Specified by:
getSecuredDomainObject
in interfaceDomainObjectSecurityAware
- Overrides:
getSecuredDomainObject
in classPlanActionSupport
-
-