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, 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, administrationConfigurationAccessor, administrationConfigurationManager, administrationConfigurationPersister, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, 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, 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, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, 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 interface com.opensymphony.xwork2.ValidationAware |
addActionMessage, addFieldError, getActionErrors, getActionMessages, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors |
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
failStartDate
protected 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 List<ResultsSummary> getNeighbouringSummaries()
getTriggerReasonLongDescriptionHtml
public String getTriggerReasonLongDescriptionHtml(ResultsSummary resultsSummary)
getTriggerReasonLongDescriptionText
public String getTriggerReasonLongDescriptionText(ResultsSummary resultsSummary)
getLinkedJiraIssues
public Collection<LinkedJiraIssue> getLinkedJiraIssues()
getLinkedJiraIssue
@NotNull
public 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 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
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 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 class PlanActionSupport
setBuildNumber
public void setBuildNumber(Integer buildNumber)
- Overrides:
setBuildNumber
in class PlanActionSupport
getFailStartDate
public 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 Map<String,Object> buildWebPanelContext(@NotNull
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(String createIssueAppLinkId)
getCreateIssueAppLinkId
public String getCreateIssueAppLinkId()
getNewIssueKey
public String getNewIssueKey()
setNewIssueKey
public void setNewIssueKey(String newIssueKey)
getMaskedMetadata
public Map<String,String> getMaskedMetadata()
getMaskedVariables
public List<VariableSubstitution> getMaskedVariables()
isTestQuarantineEnabled
public boolean isTestQuarantineEnabled()
isTestQuarantineExpiryOverridable
public boolean isTestQuarantineExpiryOverridable()
getTestQuarantineExpiryDuration
public int getTestQuarantineExpiryDuration()
getTestQuarantineExpiryPeriod
public String getTestQuarantineExpiryPeriod()
getArtifactLinkUrl
@Nullable
public String getArtifactLinkUrl(ArtifactLink artifactLink)
setArtifactLinkManager
public void setArtifactLinkManager(ArtifactLinkManager artifactLinkManager)
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.