Package com.atlassian.bamboo.build
Class PlanResultsAction
java.lang.Object
org.apache.struts2.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,UserAware,com.atlassian.core.i18n.I18nTextProvider,Serializable,org.apache.struts2.action.Action,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.locale.LocaleProvider,org.apache.struts2.text.TextProvider,org.apache.struts2.Validateable
- 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
FieldsModifier and TypeFieldDescriptionprotected AgentManagerprotected ArtifactLinkManagerprotected AuditLogServiceprotected BuildStatusHelperprotected CustomVariableContextprotected ExtendedAuthorManagerprotected JiraIssueManagerprotected JiraIssueUtilsprotected List<ResultsSummary> protected RepositoryDefinitionManagerprotected ResultsSummaryprotected TestQuarantineManagerprotected TestsManagerprotected TriggerManagerprotected VcsRepositoryViewerManagerFields inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildNumber, jiraApplinksService, resultsSummaryManager, vcsRepositoryConfigurationServiceFields 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, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildWebPanelContext(@NotNull String location) Builds a context suitable for renderingWebPanels viaFreemarkerContext.getWebPanels(String)In the future the results of this method may be cachedfinal @Nullable StringgetArtifactLinkUrl(ArtifactLink artifactLink) final @NotNull StringgetArtifactSizeDescription(ArtifactLink artifactLink) @Nullable ChainExecutionprotected List<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 StringgetLinkedJiraIssueForTestCase(long testCaseId) @NotNull List<VariableDefinitionContext> @NotNull List<ResultsSummary> @Nullable ChainStageResultgetPreviousFailedStageResult(BuildResultsSummary buildResultsSummary) returns the previousChainStageResultthat failed before theBuildResultsSummaryfailed.com.google.common.collect.ImmutableList<RepositoryChangeset> getRepositoryChangesetsWithNotBlankRevision(@NotNull ResultsSummary resultsSummary) getRepositoryData(@NotNull RepositoryChangeset repositoryChangeset) @Nullable VcsRepositoryViewergetRepositoryViewer(@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) intgetSkippedCommitsCount(@NotNull ResultsSummary resultsSummary) @Nullable StageIdentifier@Nullable TestCaseResultgetTestCaseResultOnMasterBranch(@Nullable TestCaseResult testCaseResult) intgetTriggerReasonLongDescriptionHtml(ResultsSummary resultsSummary) @Nullable StringgetUrlForCommitId(@Nullable String commitId, @NotNull VcsRepositoryData repositoryData) getUrlsForChangeset(@NotNull RepositoryChangeset repositoryChangeset) booleanbooleanbooleanisChain()booleanbooleanbooleanbooleanbooleanbooleanvoidsetAgentManager(AgentManager agentManager) voidsetArtifactLinkManager(ArtifactLinkManager artifactLinkManager) voidsetAuditLogService(AuditLogService auditLogService) voidsetBuildNumber(Integer buildNumber) voidsetChainExecutionManager(ChainExecutionManager chainExecutionManager) voidsetCommentManager(CommentManager commentManager) voidsetCreateIssueAppLinkId(String createIssueAppLinkId) voidsetCustomVariableContext(CustomVariableContext customVariableContext) voidsetExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager) voidsetJiraIssueManager(JiraIssueManager jiraIssueManager) voidsetJiraIssueUtils(JiraIssueUtils jiraIssueUtils) voidsetNewIssueKey(String newIssueKey) voidsetRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager) voidsetResultsSummary(ResultsSummary buildResults) voidsetResultsSummaryVariableAccessor(ResultsSummaryVariableAccessor resultsSummaryVariableAccessor) voidsetSortByDuration(boolean b) voidsetTestQuarantineManager(TestQuarantineManager testQuarantineManager) voidsetTestsManager(TestsManager testsManager) voidsetTriggerManager(TriggerManager triggerManager) voidsetVcsRepositoryViewerManager(VcsRepositoryViewerManager vcsRepositoryViewerManager) protected booleanMethods inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
findPotentialMasterPlan, 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, setVcsRepositoryConfigurationServiceMethods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, canRunBuild, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionErrors, getActionWarnings, getAdministrationConfiguration, getAvailableCategoryJson, getBambooContainer, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getCheckBoxFields, getConcurrentBuildExecutionStrategyOptions, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDecorator, getDefaultPersister, getDescriptionFromLabelKey, getElasticConfig, getErrorMessages, getErrors, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, 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, 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, setCachedEnvironmentService, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDecorator, setDeploymentProjectService, setDocumentationLinkProvider, setEnableJavascript, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLocalizedTextProvider, setNavigationContext, setNodeLifecycleProvider, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setWebInterfaceManager, streamJson, toJson, toJsonMethods inherited from class org.apache.struts2.ActionSupport
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionMessages, getContainer, getFormatted, getLocale, getLocaleProvider, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale, validateMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getAllErrorMessagesMethods inherited from interface com.atlassian.bamboo.ww2.aware.PlanAware
getImmutablePlan, getMutablePlan, getPlan, setPlanMethods inherited from interface org.apache.struts2.interceptor.ValidationAware
addActionMessage, addFieldError, 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:
getResultsSummaryin interfaceResultsSummaryAware
-
getComments
-
setResultsSummary
- Specified by:
setResultsSummaryin interfaceResultsSummaryAware
-
getPreviousFailedStageResult
@TemplateAccessible @Nullable public @Nullable ChainStageResult getPreviousFailedStageResult(BuildResultsSummary buildResultsSummary) returns the previousChainStageResultthat failed before theBuildResultsSummaryfailed. Returns null if noChainStageResultfailed.- Parameters:
buildResultsSummary-- Returns:
-
getStageToContinue
-
getNeighbouringSummaries
-
getTriggerReasonLongDescriptionHtml
@TemplateAccessible public String getTriggerReasonLongDescriptionHtml(ResultsSummary resultsSummary) -
getLinkedJiraIssues
-
getLinkedJiraIssue
returns jira issue details for the given issueKey, or - in case of OAuth authentication required - URI for the login dance -
getLinkedJiraIssueForTestCase
@TemplateAccessible @Nullable public @Nullable String getLinkedJiraIssueForTestCase(long testCaseId) -
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:
getBuildNumberin classPlanActionSupport
-
setBuildNumber
- Overrides:
setBuildNumberin 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
@TemplateAccessible public boolean hasDetachedResults() -
getTestCaseResultOnMasterBranch
@TemplateAccessible @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:BambooActionSupportBuilds a context suitable for renderingWebPanels viaFreemarkerContext.getWebPanels(String)In the future the results of this method may be cached- Overrides:
buildWebPanelContextin classPlanActionSupport- Parameters:
location-- Returns:
- context
-
validateResultSummary
protected boolean validateResultSummary() -
getSkippedCommitsCount
@TemplateAccessible public int getSkippedCommitsCount(@NotNull @NotNull ResultsSummary resultsSummary) -
getRepositoryData
@TemplateAccessible public VcsRepositoryData getRepositoryData(@NotNull @NotNull RepositoryChangeset repositoryChangeset) -
getRepositoryViewer
@TemplateAccessible @Nullable public @Nullable VcsRepositoryViewer getRepositoryViewer(@NotNull @NotNull VcsRepositoryData repositoryData) -
getUrlsForChangeset
@TemplateAccessible @NotNull public @NotNull Map<String,String> getUrlsForChangeset(@NotNull @NotNull RepositoryChangeset repositoryChangeset) -
getUrlForCommitId
@TemplateAccessible @Nullable public @Nullable String getUrlForCommitId(@Nullable @Nullable String commitId, @NotNull @NotNull VcsRepositoryData repositoryData) -
getRepositoryChangesetsWithNotBlankRevision
@TemplateAccessible 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
@TemplateAccessible @Nullable public final @Nullable String getArtifactLinkUrl(ArtifactLink artifactLink) -
getArtifactSizeDescription
@TemplateAccessible @NotNull public final @NotNull String getArtifactSizeDescription(ArtifactLink artifactLink) -
isChain
public boolean isChain() -
setArtifactLinkManager
-
setRepositoryDefinitionManager
- Overrides:
setRepositoryDefinitionManagerin classPlanActionSupport
-
setVcsRepositoryViewerManager
-
setCustomVariableContext
-
setCommentManager
-
setResultsSummaryVariableAccessor
public void setResultsSummaryVariableAccessor(ResultsSummaryVariableAccessor resultsSummaryVariableAccessor) -
getSecuredDomainObject
- Specified by:
getSecuredDomainObjectin interfaceDomainObjectSecurityAware- Overrides:
getSecuredDomainObjectin classPlanActionSupport
-