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:
- ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanReadSecurityAware, PlanAware, ProjectAware, ResultsSummaryAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, java.io.Serializable
- Direct Known Subclasses:
- ArtifactUrlRedirectAction, BuildResultsAction, ChainResultsAction, EditCommentAction, GotoBuildResult, LinkTestToJiraIssueAction, UnlinkTestToJiraIssueAction, ViewJiraIssues, ViewTrackingForBuildResult
public class PlanResultsAction
- extends PlanActionSupport
- implements ResultsSummaryAware, PlanReadSecurityAware
- See Also:
- Serialized Form
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport |
ACCESS_DENIED, administrationConfigurationManager, administrationConfigurationPersister, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, deploymentProjectService, environmentService, featureManager, PAGE_NOT_FOUND, PLAN_KEY_CONTEXT, planExecutionManager, planManager, pluginAccessor, projectManager, webInterfaceManager |
Fields inherited from class com.opensymphony.xwork2.ActionSupport |
LOG |
Fields inherited from interface com.opensymphony.xwork2.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Methods inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport |
getBuildKey, getCurrentlyBuildingPlans, getErrorAccessor, getImmutablePlan, getJobsWebItemsForSection, getMutablePlan, getPlan, getPlanKey, getPlanResultKey, getProject, getResultsSummaryManager, getSecuredDomainObject, getTypedPlanKey, getTypedPlanResultKey, isJiraApplicationLinkDefined, isRestartable, planNotFound, setBuildKey, setDecoratingErrorAccessor, setJiraApplinksService, setPlan, setPlanExecutionManager, setPlanKey, setPlanResultKey, setRepositoryConfigurationService, setResultsSummaryManager |
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport |
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, execute, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDeploymentProject, getDescriptionFromLabelKey, getElasticConfig, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedActionWarnings, getFormattedErrorMessages, getHelpPanels, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getServerLifecycleState, 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, hasLinkedDeployments, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, input, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setDeploymentProjectService, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLinkedDeploymentProjectCacheService, setNavigationContext, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJson |
Methods inherited from class com.opensymphony.xwork2.ActionSupport |
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFormatted, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, 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.opensymphony.xwork2.ValidationAware |
addActionMessage, addFieldError, getActionErrors, getActionMessages, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors |
neighbouringSummaries
protected java.util.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
failStartDate
protected java.util.Date failStartDate
artifactLinkManager
protected ArtifactLinkManager artifactLinkManager
PlanResultsAction
public PlanResultsAction()
getResultsSummary
public ResultsSummary getResultsSummary()
- Specified by:
getResultsSummary
in interface ResultsSummaryAware
setResultsSummary
public void setResultsSummary(ResultsSummary buildResults)
- Specified by:
setResultsSummary
in interface ResultsSummaryAware
getPreviousFailedStageResult
@Nullable
public ChainStageResult getPreviousFailedStageResult(BuildResultsSummary buildResultsSummary)
- returns the previous
ChainStageResult
that failed before the
BuildResultsSummary
failed.
Returns null if no ChainStageResult
failed.
- Parameters:
buildResultsSummary
-
- Returns:
getStageToContinue
@Nullable
public StageIdentifier getStageToContinue()
getNeighbouringSummaries
@NotNull
public java.util.List<ResultsSummary> getNeighbouringSummaries()
getTriggerReasonLongDescriptionHtml
public java.lang.String getTriggerReasonLongDescriptionHtml(ResultsSummary resultsSummary)
getTriggerReasonLongDescriptionText
public java.lang.String getTriggerReasonLongDescriptionText(ResultsSummary resultsSummary)
getLinkedJiraIssues
public java.util.Collection<LinkedJiraIssue> getLinkedJiraIssues()
getLinkedJiraIssue
@NotNull
public Pair<LinkedJiraIssue,java.net.URI> getLinkedJiraIssue(java.lang.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 java.lang.String getLinkedJiraIssueForTestCase(long testCaseId)
getSizeBoundedLinkedJiraIssues
public java.util.Collection<LinkedJiraIssue> getSizeBoundedLinkedJiraIssues(int size)
isHideJiraTeaser
public boolean isHideJiraTeaser()
getShortJiraIssues
public java.util.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 java.util.List<LinkedJiraIssue> getShortJiraIssues(int numberNeeded)
- Returns a required length list of jira issues and controls logic behind which are shown * Fixed issues are given
preference
This is needed so that only the required number of JIRA Issues will be retrieved from the jira server
- Parameters:
numberNeeded
-
- Returns:
getJiraIssues
public java.util.List<LinkedJiraIssue> getJiraIssues()
isOauthAuthenticationRequired
public boolean isOauthAuthenticationRequired()
getOauthLoginDanceUrl
public java.net.URI getOauthLoginDanceUrl()
getIssueDetails
protected java.lang.Iterable<LinkedJiraIssue> getIssueDetails(java.lang.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 java.lang.Integer getBuildNumber()
- Overrides:
getBuildNumber
in class PlanActionSupport
setBuildNumber
public void setBuildNumber(java.lang.Integer buildNumber)
- Overrides:
setBuildNumber
in class PlanActionSupport
getFailStartDate
public java.util.Date getFailStartDate()
isAuditLoggingEnabled
public boolean isAuditLoggingEnabled()
isConfigChanged
public boolean isConfigChanged()
getTestCaseResultOnMasterBranch
@Nullable
public TestCaseResult getTestCaseResultOnMasterBranch(@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 ChainExecution getChainExecution()
setChainExecutionManager
public void setChainExecutionManager(ChainExecutionManager chainExecutionManager)
setTestQuarantineManager
public void setTestQuarantineManager(TestQuarantineManager testQuarantineManager)
buildWebPanelContext
@NotNull
protected java.util.Map<java.lang.String,java.lang.Object> buildWebPanelContext(@NotNull
java.lang.String location)
- Description copied from class:
BambooActionSupport
- Builds a context suitable for rendering
WebPanel
s via FreemarkerContext.getWebPanels(String)
In
the future the results of this method may be cached
- Overrides:
buildWebPanelContext
in class PlanActionSupport
- Returns:
- context
getSkippedCommitsCount
public int getSkippedCommitsCount(@NotNull
ResultsSummary resultsSummary)
getRepositoryData
public RepositoryData getRepositoryData(@NotNull
RepositoryChangeset repositoryChangeset)
getRepositoryChangesetsWithNotBlankRevision
public com.google.common.collect.ImmutableList<RepositoryChangeset> getRepositoryChangesetsWithNotBlankRevision(@NotNull
ResultsSummary resultsSummary)
setCreateIssueAppLinkId
public void setCreateIssueAppLinkId(java.lang.String createIssueAppLinkId)
getCreateIssueAppLinkId
public java.lang.String getCreateIssueAppLinkId()
getNewIssueKey
public java.lang.String getNewIssueKey()
setNewIssueKey
public void setNewIssueKey(java.lang.String newIssueKey)
getMaskedMetadata
public java.util.Map<java.lang.String,java.lang.String> getMaskedMetadata()
getMaskedVariables
public java.util.List<VariableSubstitution> getMaskedVariables()
isTestQuarantineEnabled
public boolean isTestQuarantineEnabled()
getArtifactLinkUrl
@Nullable
public java.lang.String getArtifactLinkUrl(ArtifactLink artifactLink)
setArtifactLinkManager
public void setArtifactLinkManager(ArtifactLinkManager artifactLinkManager)
setAdministrationConfigurationAccessor
public void setAdministrationConfigurationAccessor(AdministrationConfigurationAccessor administrationConfigurationAccessor)
- Overrides:
setAdministrationConfigurationAccessor
in class BambooActionSupport
Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.