Package com.atlassian.bamboo.build
Class BuildResultsAction
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.ww2.actions.PlanActionSupport
com.atlassian.bamboo.build.PlanResultsAction
com.atlassian.bamboo.build.BuildResultsAction
- All Implemented Interfaces:
JsonStreamingAction,ErrorCollection,BambooSessionAware,BuildableAware,BuildResultsAware,BuildResultsSummaryAware,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:
ViewBuildResults,ViewBuildResultsSuccessfulTests,ViewBuildResultsTests
public class BuildResultsAction
extends PlanResultsAction
implements BuildableAware, BuildResultsAware, BuildResultsSummaryAware
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BuildExecutionManagerprotected BuildResultsprotected BuildResultsSummaryprotected PersisterFields inherited from class com.atlassian.bamboo.build.PlanResultsAction
agentManager, artifactLinkManager, auditLogService, buildStatusHelper, customVariableContext, extendedAuthorManager, jiraIssueManager, jiraIssueUtils, neighbouringSummaries, repositoryDefinitionManager, resultsSummary, testQuarantineManager, testsManager, triggerManager, 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 TypeMethodDescriptionprotected StringerrorMessage(String name) execute()@Nullable BuildAgentgetAgent(BuildResultsSummary summary) @Nullable BuildAgentgetAgent(@Nullable CurrentlyBuilding currentlyBuilding) @Nullable StringgetAgentType(BuildResultsSummary summary) @Nullable StringgetAgentType(@Nullable CurrentlyBuilding currentlyBuilding) Let the UI have the build results instance.protected @Nullable BuildResultsgetBuildResultsFromContainer(int currentBuildNumber, String jobKey) getChain()Deprecated.@Nullable StringgetEphemeralAgentTemplateIdIfExists(@Nullable BuildResultsSummary currentlyBuilding) @Nullable StringgetEphemeralAgentTemplateIdIfExists(@Nullable CurrentlyBuilding currentlyBuilding) @Nullable StringgetEphemeralAgentTemplateNameIfExists(@Nullable BuildResultsSummary currentlyBuilding) @Nullable StringgetEphemeralAgentTemplateNameIfExists(@Nullable CurrentlyBuilding currentlyBuilding) @Nullable BuildResultsSummarygetFailingSinceForTest(@Nullable TestCaseResult testCaseResult) @Nullable StringgetFailingSinceForTestString(@Nullable BuildResultsSummary buildResultsSummary, @Nullable TestCaseResult testCaseResult) @NotNull StringgetFailingSinceRelativeTime(@Nullable BuildResultsSummary buildResultsSummary, @Nullable BuildResultsSummary failingSinceSummary) @Nullable ImmutableBuildablelongvoidsetBuild(ImmutableBuildable build) voidsetBuildExecutionManager(BuildExecutionManager buildExecutionManager) voidsetBuildQueueManager(BuildQueueManager buildQueueManager) voidsetBuildResultKey(String buildResultKey) voidsetBuildResults(BuildResults buildResults) voidsetBuildResultsSummary(BuildResultsSummary buildResultsSummary) voidsetEphemeralAgentsService(EphemeralAgentsService ephemeralAgentsService) voidsetPersister(Persister persister) Methods inherited from class com.atlassian.bamboo.build.PlanResultsAction
buildWebPanelContext, getArtifactLinkUrl, getArtifactSizeDescription, getBuildNumber, getBuildStatusHelper, getChainExecution, getComments, getCreateIssueAppLinkId, getExecutionStatus, getFailStartDate, getIssueDetails, getJiraIssues, getLinkedJiraIssue, getLinkedJiraIssueForTestCase, getLinkedJiraIssues, getManualVariables, getMaskedMetadata, getMaskedVariables, getNeighbouringSummaries, getNewIssueKey, getOauthLoginDanceUrl, getPreviousFailedStageResult, getRepositoryChangesetsWithNotBlankRevision, getRepositoryData, getRepositoryViewer, getRequestedBuildNumber, getResultsSummary, getSecuredDomainObject, getShortJiraIssues, getShortJiraIssues, getSizeBoundedLinkedJiraIssues, getSkippedCommitsCount, getStageToContinue, getTestCaseResultOnMasterBranch, getTestQuarantineExpiryDuration, getTestQuarantineExpiryPeriod, getTriggerReasonLongDescriptionHtml, getUrlForCommitId, getUrlsForChangeset, hasDetachedResults, isAuditLoggingEnabled, isChain, isConfigChanged, isHideJiraTeaser, isOauthAuthenticationRequired, isSortByDuration, isTestQuarantineEnabled, isTestQuarantineExpiryOverridable, setAgentManager, setArtifactLinkManager, setAuditLogService, setBuildNumber, setChainExecutionManager, setCommentManager, setCreateIssueAppLinkId, setCustomVariableContext, setExtendedAuthorManager, setJiraIssueManager, setJiraIssueUtils, setNewIssueKey, setRepositoryDefinitionManager, setResultsSummary, setResultsSummaryVariableAccessor, setSortByDuration, setTestQuarantineManager, setTestsManager, setTriggerManager, setVcsRepositoryViewerManager, validateResultSummaryMethods 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, 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
-
buildResults
-
buildResultsSummary
-
buildExecutionManager
-
persister
-
-
Constructor Details
-
BuildResultsAction
public BuildResultsAction()
-
-
Method Details
-
getImmutableBuild
- Specified by:
getImmutableBuildin interfaceBuildableAware
-
setBuild
- Specified by:
setBuildin interfaceBuildableAware
-
getBuildResultKey
-
setBuildResultKey
-
getBuildResults
Let the UI have the build results instance.- Specified by:
getBuildResultsin interfaceBuildResultsAware- Returns:
- The build results
-
setBuildResults
- Specified by:
setBuildResultsin interfaceBuildResultsAware
-
getBuildResultsSummary
- Specified by:
getBuildResultsSummaryin interfaceBuildResultsSummaryAware
-
setBuildResultsSummary
- Specified by:
setBuildResultsSummaryin interfaceBuildResultsSummaryAware
-
getChain
Deprecated.since 6.9 usegetImmutableChain() -
getImmutableChain
-
execute
- Specified by:
executein interfaceorg.apache.struts2.action.Action- Overrides:
executein classorg.apache.struts2.ActionSupport- Throws:
Exception
-
getBuildResultsFromContainer
@Nullable protected @Nullable BuildResults getBuildResultsFromContainer(int currentBuildNumber, String jobKey) -
getFailingSinceForTest
@TemplateAccessible @Nullable public @Nullable BuildResultsSummary getFailingSinceForTest(@Nullable @Nullable TestCaseResult testCaseResult) -
getFailingSinceForTestString
@TemplateAccessible @Nullable public @Nullable String getFailingSinceForTestString(@Nullable @Nullable BuildResultsSummary buildResultsSummary, @Nullable @Nullable TestCaseResult testCaseResult) -
getFailingSinceRelativeTime
@TemplateAccessible @NotNull public @NotNull String getFailingSinceRelativeTime(@Nullable @Nullable BuildResultsSummary buildResultsSummary, @Nullable @Nullable BuildResultsSummary failingSinceSummary) -
getAgent
-
getAgentType
-
getEphemeralAgentTemplateIdIfExists
@Nullable public @Nullable String getEphemeralAgentTemplateIdIfExists(@Nullable @Nullable BuildResultsSummary currentlyBuilding) -
getEphemeralAgentTemplateNameIfExists
@Nullable public @Nullable String getEphemeralAgentTemplateNameIfExists(@Nullable @Nullable BuildResultsSummary currentlyBuilding) -
getAgent
@Nullable public @Nullable BuildAgent getAgent(@Nullable @Nullable CurrentlyBuilding currentlyBuilding) -
getAgentType
@Nullable public @Nullable String getAgentType(@Nullable @Nullable CurrentlyBuilding currentlyBuilding) -
getEphemeralAgentTemplateIdIfExists
@Nullable public @Nullable String getEphemeralAgentTemplateIdIfExists(@Nullable @Nullable CurrentlyBuilding currentlyBuilding) -
getEphemeralAgentTemplateNameIfExists
@Nullable public @Nullable String getEphemeralAgentTemplateNameIfExists(@Nullable @Nullable CurrentlyBuilding currentlyBuilding) -
errorMessage
-
getCurrentlyBuilding
-
getExecutableAgents
-
getWaitForEphemeralAgentsTimeout
public long getWaitForEphemeralAgentsTimeout() -
getExecutableElasticImages
-
getExecutableEphemeralAgentTemplates
-
setBuildExecutionManager
-
setPersister
-
setBuildQueueManager
-
setEphemeralAgentsService
-
getImmutableChain()