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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
-
Field Summary
Modifier and TypeFieldDescriptionprotected AgentManager
protected ArtifactLinkManager
protected AuditLogService
protected BuildStatusHelper
protected CustomVariableContext
protected ExtendedAuthorManager
protected JiraIssueManager
protected JiraIssueUtils
protected List<ResultsSummary>
protected RepositoryDefinitionManager
protected ResultsSummary
protected TestQuarantineManager
protected TestsManager
protected TriggerManager
protected 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
Fields inherited from class com.opensymphony.xwork2.ActionSupport
container
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildWebPanelContext
(@NotNull String location) Builds a context suitable for renderingWebPanel
s viaFreemarkerContext.getWebPanels(String)
In the future the results of this method may be cachedfinal @Nullable String
getArtifactLinkUrl
(ArtifactLink artifactLink) final @NotNull String
getArtifactSizeDescription
(ArtifactLink artifactLink) @Nullable ChainExecution
protected Iterable<LinkedJiraIssue>
getIssueDetails
(Iterable<LinkedJiraIssue> linkedIssues) @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@Nullable String
getLinkedJiraIssueForTestCase
(long testCaseId) @NotNull List<VariableDefinitionContext>
@NotNull List<ResultsSummary>
@Nullable ChainStageResult
getPreviousFailedStageResult
(BuildResultsSummary buildResultsSummary) returns the previousChainStageResult
that failed before theBuildResultsSummary
failed.com.google.common.collect.ImmutableList<RepositoryChangeset>
getRepositoryChangesetsWithNotBlankRevision
(@NotNull ResultsSummary resultsSummary) getRepositoryData
(@NotNull RepositoryChangeset repositoryChangeset) @Nullable VcsRepositoryViewer
getRepositoryViewer
(@NotNull VcsRepositoryData repositoryData) Returns a shortened (default length) list of jira issues and controls logic behind which are shown * Fixed issues are given preferencegetShortJiraIssues
(int numberNeeded) Returns a required length list of jira issues and controls logic behind which are shown * Fixed issues are given preferencegetSizeBoundedLinkedJiraIssues
(int size) int
getSkippedCommitsCount
(@NotNull ResultsSummary resultsSummary) @Nullable StageIdentifier
@Nullable TestCaseResult
getTestCaseResultOnMasterBranch
(@Nullable TestCaseResult testCaseResult) int
getTriggerReasonLongDescriptionHtml
(ResultsSummary resultsSummary) getTriggerReasonLongDescriptionText
(ResultsSummary resultsSummary) @Nullable String
getUrlForCommitId
(@Nullable String commitId, @NotNull VcsRepositoryData repositoryData) getUrlsForChangeset
(@NotNull RepositoryChangeset repositoryChangeset) boolean
boolean
boolean
isChain()
boolean
boolean
boolean
boolean
boolean
boolean
void
setAgentManager
(AgentManager agentManager) void
setArtifactLinkManager
(ArtifactLinkManager artifactLinkManager) void
setAuditLogService
(AuditLogService auditLogService) void
setBuildNumber
(Integer buildNumber) void
setChainExecutionManager
(ChainExecutionManager chainExecutionManager) void
setCommentManager
(CommentManager commentManager) void
setCreateIssueAppLinkId
(String createIssueAppLinkId) void
setCustomVariableContext
(CustomVariableContext customVariableContext) void
setExtendedAuthorManager
(ExtendedAuthorManager extendedAuthorManager) void
setJiraIssueManager
(JiraIssueManager jiraIssueManager) void
setJiraIssueUtils
(JiraIssueUtils jiraIssueUtils) void
setNewIssueKey
(String newIssueKey) void
setRepositoryDefinitionManager
(RepositoryDefinitionManager repositoryDefinitionManager) void
setResultsSummary
(ResultsSummary buildResults) void
setResultsSummaryVariableAccessor
(ResultsSummaryVariableAccessor resultsSummaryVariableAccessor) void
setSortByDuration
(boolean b) void
setTestQuarantineManager
(TestQuarantineManager testQuarantineManager) void
setTestsManager
(TestsManager testsManager) void
setTriggerManager
(TriggerManager triggerManager) void
setVcsRepositoryViewerManager
(VcsRepositoryViewerManager vcsRepositoryViewerManager) protected boolean
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, canRunBuild, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getAvailableCategoryJson, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildExecutionStrategyOptions, 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
Methods inherited from interface com.opensymphony.xwork2.interceptor.ValidationAware
addActionMessage, addFieldError, getActionErrors, getActionMessages, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
-
Field Details
-
neighbouringSummaries
-
extendedAuthorManager
-
triggerManager
-
agentManager
-
jiraIssueManager
-
jiraIssueUtils
-
testsManager
-
auditLogService
-
testQuarantineManager
-
buildStatusHelper
-
resultsSummary
-
artifactLinkManager
-
repositoryDefinitionManager
-
vcsRepositoryViewerManager
-
customVariableContext
-
-
Constructor Details
-
PlanResultsAction
public PlanResultsAction()
-
-
Method Details
-
getResultsSummary
- Specified by:
getResultsSummary
in interfaceResultsSummaryAware
-
getComments
-
setResultsSummary
- 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
-
getNeighbouringSummaries
-
getTriggerReasonLongDescriptionHtml
-
getTriggerReasonLongDescriptionText
-
getLinkedJiraIssues
-
getLinkedJiraIssue
returns jira issue details for the given issueKey, or - in case of OAuth authentication required - URI for the login dance -
getLinkedJiraIssueForTestCase
-
getSizeBoundedLinkedJiraIssues
-
getShortJiraIssues
Returns a shortened (default length) list of jira issues and controls logic behind which are shown * Fixed issues are given preference- Returns:
-
getShortJiraIssues
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
-
isOauthAuthenticationRequired
public boolean isOauthAuthenticationRequired() -
getOauthLoginDanceUrl
-
getIssueDetails
-
setJiraIssueManager
-
setExtendedAuthorManager
-
setTriggerManager
-
setJiraIssueUtils
-
setAgentManager
-
setTestsManager
-
getBuildNumber
- Overrides:
getBuildNumber
in classPlanActionSupport
-
setBuildNumber
- Overrides:
setBuildNumber
in classPlanActionSupport
-
getRequestedBuildNumber
- Returns:
- build number as requested by call, without verification against actual plan result build number range
-
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
-
setAuditLogService
-
getExecutionStatus
-
getChainExecution
-
setChainExecutionManager
-
setTestQuarantineManager
-
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
-
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
-
getCreateIssueAppLinkId
-
getNewIssueKey
-
setNewIssueKey
-
getMaskedMetadata
-
getMaskedVariables
-
getManualVariables
-
isTestQuarantineEnabled
public boolean isTestQuarantineEnabled() -
isTestQuarantineExpiryOverridable
public boolean isTestQuarantineExpiryOverridable() -
getTestQuarantineExpiryDuration
public int getTestQuarantineExpiryDuration() -
getTestQuarantineExpiryPeriod
-
getArtifactLinkUrl
-
getArtifactSizeDescription
-
isChain
public boolean isChain() -
setArtifactLinkManager
-
setRepositoryDefinitionManager
- Overrides:
setRepositoryDefinitionManager
in classPlanActionSupport
-
setVcsRepositoryViewerManager
-
setCustomVariableContext
-
setCommentManager
-
setResultsSummaryVariableAccessor
public void setResultsSummaryVariableAccessor(ResultsSummaryVariableAccessor resultsSummaryVariableAccessor) -
getSecuredDomainObject
- Specified by:
getSecuredDomainObject
in interfaceDomainObjectSecurityAware
- Overrides:
getSecuredDomainObject
in classPlanActionSupport
-