public class ConfigureBranches extends ChainActionSupport implements BuildConfigurationAware, PlanEditSecurityAware
BambooActionSupport.JSONStatus
Modifier and Type | Field and Description |
---|---|
protected static String |
BRANCH_NAME_PATTERN_FIELD |
protected static String |
PLAN_BRANCH_CLEAN_UP_PERIOD_IN_DAYS |
protected static String |
PLAN_BRANCH_INACTIVITY_CLEAN_UP_PERIOD_IN_DAYS |
protected static String |
SVN_BRANCH_ROOT_OVERRIDE_VALIDATION_ERROR_KEY |
chainBranchManager, chainExecutionManager, executableAgentsHelper, stageStatusHelper
buildNumber, jiraApplinksService, repositoryConfigurationService, resultsSummaryManager
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
Constructor and Description |
---|
ConfigureBranches() |
getBranchIdentifiers, getChain, getChainBranches, getChainBranchesByDate, getChainResult, getChainResultNumber, getErrorAccessor, getImmutableChain, getImmutableChainBranches, getImmutableChainStage, getMutableChain, getMutableChainStage, getSiblingBranchIdentifiers, getStageStatusHelper, setChain, setChainBranchManager, setChainExecutionManager, setChainResult, setChainResultNumber, setChainStage, setDecoratingAggregatedChainErrorAccessor, setExecutableAgentsHelper, setStageStatusHelper
buildWebPanelContext, getBuildKey, getBuildNumber, getCurrentlyBuildingPlans, getImmutablePlan, getJobsWebItemsForSection, getMutablePlan, getPlan, getPlanKey, getPlanResultKey, getProject, getResultsSummaryManager, getSecuredDomainObject, getTypedPlanKey, getTypedPlanResultKey, isJiraApplicationLinkDefined, isRestartable, planNotFound, setBuildKey, setBuildNumber, setDecoratingErrorAccessor, setJiraApplinksService, setPlan, setPlanExecutionManager, setPlanKey, setPlanResultKey, setRepositoryConfigurationService, setResultsSummaryManager
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, execute, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getAvailableCategoryJson, 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, setNavigationContext, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJson
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFormatted, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getImmutablePlan, getMutablePlan, getPlan, setPlan
getSecuredDomainObject
getErrorMessages, getErrors
protected static final String BRANCH_NAME_PATTERN_FIELD
protected static final String PLAN_BRANCH_CLEAN_UP_PERIOD_IN_DAYS
protected static final String PLAN_BRANCH_INACTIVITY_CLEAN_UP_PERIOD_IN_DAYS
protected static final String SVN_BRANCH_ROOT_OVERRIDE_VALIDATION_ERROR_KEY
public void validate()
validate
in interface com.opensymphony.xwork2.Validateable
validate
in class com.opensymphony.xwork2.ActionSupport
public String doDefault() throws Exception
BambooActionSupport
doDefault
in class BambooActionSupport
Exception
protected void schedulePlanBranchInitialization(Plan plan, BuildDefinition buildDefinition, boolean previousPlanBranchCreationEnabledSetting)
plan
- plan to schedule plan branch initialization forbuildDefinition
- build definition of the plan, including plan settings definitionspreviousPlanBranchCreationEnabledSetting
- previous branch creation settingprotected void updateBranchMonitoringConfiguration(BranchMonitoringConfiguration branchMonitoringConfiguration)
branchMonitoringConfiguration
- to update with new valuesprotected void configurePlanBranchMonitoringSettings(BranchMonitoringConfiguration monitoringConfiguration, org.apache.commons.configuration.HierarchicalConfiguration customConfiguration)
protected boolean isPlanBranchesInitializationRequired(Plan plan, boolean previousIsPlanBranchCreationEnabled)
previousIsPlanBranchCreationEnabled
- previous setting for the automatic creation of plan branchesprotected Runnable savePlanAndScheduleBranchInitialisation(Plan plan, BuildDefinition buildDefinition, boolean needToInitializeBranches)
protected void populateBranchCreationSettings(BranchMonitoringConfiguration monitoringConfiguration)
protected void populateRemovedBranchCleanUpSettings(BranchMonitoringConfiguration monitoringConfiguration)
protected void populateInactiveBranchCleanUpSettings(BranchMonitoringConfiguration monitoringConfiguration)
public Map<PlanIdentifier,String> getBranchesForAutoIntegration()
public boolean isHideBranchesSplashScreen()
public RepositoryDefinition getDefaultRepositoryDefinition()
public Repository getDefaultRepository()
public String getBranchIntegrationEditHtml()
public BuildConfiguration getBuildConfiguration()
getBuildConfiguration
in interface BareBuildConfigurationAware
public void setBuildConfiguration(BuildConfiguration buildConfiguration)
setBuildConfiguration
in interface BareBuildConfigurationAware
public String getPlanBranchCreation()
public void setPlanBranchCreation(String planBranchCreation)
public boolean isMergeCapable()
public boolean isGitRepository()
public String getPlanBranchCreationRegularExpression()
public void setPlanBranchCreationRegularExpression(String planBranchCreationRegularExpression)
public String getRemovedBranchCleanUpPeriodInDays()
public void setRemovedBranchCleanUpPeriodInDays(String removedBranchCleanUpPeriodInDays)
public void setInactiveBranchCleanUpPeriodInDays(String inactiveBranchCleanUpPeriodInDays)
public String getInactiveBranchCleanUpPeriodInDays()
public List<BranchCreationType> getBranchCreationTypes()
public List<BranchRemovedCleanUpType> getRemovedBranchCleanUpTypes()
public List<BranchInactiveCleanUpType> getInactiveBranchCleanUpTypes()
public List<BranchTriggeringOption> getBranchTriggeringOptions()
public String getDefaultNotificationStrategy()
public void setDefaultNotificationStrategy(String defaultNotificationStrategy)
public boolean isBranchDetectionCapable()
public boolean isPullRequestAware()
public boolean isCreateBranchesForPullRequestsEnabled()
public String getAutomaticBranchDetectionIntervalString()
public boolean isSvnRepository()
public List<BranchNotificationStrategy> getNotificationStrategies()
public void setBranchDetectionService(BranchDetectionService branchDetectionService)
public void setScopedExclusionService(ScopedExclusionService scopedExclusionService)
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
public void setSvnBranchRootOverridden(boolean svnBranchRootOverridden)
public boolean isSvnBranchRootOverridden()
public void setSvnBranchRootOverride(String svnBranchRootOverride)
public String getSvnBranchRootOverride()
public String getSvnRepositoryBranchRoot()
public boolean isBuildPullRequests()
public void setBuildPullRequests(boolean buildPullRequests)
public boolean isRemoteJiraBranchLinkingEnabled()
public void setRemoteJiraBranchLinkingEnabled(boolean remoteJiraBranchLinkingEnabled)
public boolean isSaved()
public void setSaved(boolean saved)
public String getRemovedBranchCleanUp()
public void setRemovedBranchCleanUp(String removedBranchCleanUp)
public String getInactiveBranchCleanUp()
public void setInactiveBranchCleanUp(String inactiveBranchCleanUp)
public String getBranchTriggering()
public void setBranchTriggering(String branchTriggering)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.