@Deprecated public abstract class AbstractRepository extends BaseConfigurablePlugin implements Repository, IncludeExcludeAwareRepository, QuietPeriodAwareRepository, AdvancedConfigurationAwareRepository, FilterChangesetAwareRepository, OnceOffCapableRepository
| Modifier and Type | Field and Description |
|---|---|
protected AdministrationConfigurationAccessor |
administrationConfigurationAccessor
Deprecated.
since 6.8 inject your own
|
static String |
BUILD_TRIGGER_IP
Deprecated.
|
protected BuildDirectoryManager |
buildDirectoryManager
Deprecated.
since 6.8 inject your own
|
protected BuildLoggerManager |
buildLoggerManager
Deprecated.
since 6.8 inject your own
|
protected CustomVariableContext |
customVariableContext
Deprecated.
since 6.8 inject your own
|
protected FeatureManager |
featureManager
Deprecated.
since 6.8 inject your own
|
static String |
REPO_PREFIX
Deprecated.
|
protected RepositoryModuleDescriptorImpl |
repositoryModuleDescriptor
Deprecated.
|
protected TemplateRenderer |
templateRenderer
Deprecated.
since 6.8 inject your own
|
protected com.opensymphony.xwork2.TextProvider |
textProvider
Deprecated.
since 6.8 inject your own
|
moduleDescriptorFILTER_PATTERN_EXCLUDE, FILTER_PATTERN_INCLUDE, FILTER_PATTERN_NONE, FILTER_PATTERN_OPTION, FILTER_PATTERN_REGEXCHANGESET_FILTER_PATTERN_REGEX, MAVEN_RELEASE_PLUGIN_EXCLUSION_PATTERNSELECTED_REPOSITORY, UNKNOWN_HOST| Constructor and Description |
|---|
AbstractRepository()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultValues(@NotNull BuildConfiguration buildConfiguration)
Deprecated.
Extension point for adding default values to the form for
RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) |
@NotNull ErrorCollection |
checkConnection()
Deprecated.
This method internally validates the current connection for the repository.
|
@NotNull BuildRepositoryChanges |
collectChangesForRevision(@NotNull PlanKey planKey,
@NotNull String targetRevision)
Deprecated.
Collects the changes for the targetRevision.
|
void |
customizeBuildRequirements(@NotNull PlanKey planKey,
@NotNull BuildConfiguration buildConfiguration,
@NotNull RequirementSet requirementSet)
Deprecated.
Extension point for adding/customizing requirements when editing a build's builder configuration.
|
String |
getAdvancedEditHtml(@NotNull BuildConfiguration buildConfiguration,
@Nullable Plan plan)
Deprecated.
|
String |
getAdvancedViewHtml(@NotNull Plan plan)
Deprecated.
since 5.5 use
StandaloneRepository.getAdvancedViewHtml() |
@Nullable String |
getBranchIntegrationEditHtml()
Deprecated.
|
String |
getChangesetFilterPatternRegex()
Deprecated.
The regex expression on which changeset comments are matched for exclusion.
|
TriggerModuleDescriptor |
getDefaultTriggerModule()
Deprecated.
since 5.14
|
String |
getDescription()
Deprecated.
|
@Nullable String |
getEditHtml(@NotNull BuildConfiguration buildConfiguration,
@Nullable Plan plan)
Deprecated.
|
String |
getFilterFilePatternOption()
Deprecated.
Do we want to include files which match pattern or exclude files
which match pattern?
|
String |
getFilterFilePatternRegex()
Deprecated.
The regex expression on which fileName (paths) are matched for inclusion/exclusion.
|
@NotNull String |
getKey()
Deprecated.
The full complete plugin key for the repo
|
@NotNull String |
getLocationIdentifier()
Deprecated.
A string representing the location of the repository
|
@Nullable String |
getMavenPomCheckoutAccessEditHtml(@NotNull BuildConfiguration buildConfiguration)
Deprecated.
|
protected int |
getMaxCommitsToReturn()
Deprecated.
|
int |
getMaxRetries()
Deprecated.
Returns the maximum number of times to collect changes
|
@Nullable String |
getMinimalEditHtml(@NotNull BuildConfiguration buildConfiguration)
Deprecated.
Returns HTML for the minimal configuration of the repository.
|
static TriggerModuleDescriptor |
getPollingTriggerModule()
Deprecated.
since 5.14
|
int |
getQuietPeriod()
Deprecated.
Returns the number of seconds to wait between each retry
|
@NotNull String |
getShortKey()
Deprecated.
The mini key from the plugin (should not contain plugin prefix)
|
@NotNull File |
getSourceCodeDirectory(@NotNull PlanKey planKey)
Deprecated.
For Subversion, we use the build name's directory within the system's working directory
|
Collection<String> |
getSystemWideExclusionPatterns()
Deprecated.
Collection of system wide, hardcoded changeset filtering patterns
|
@Nullable String |
getViewHtml(@NotNull Plan plan)
Deprecated.
since 5.5 use
StandaloneRepository.getViewHtml() |
File |
getWorkingDirectory()
Deprecated.
|
void |
init(@NotNull com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
Deprecated.
Initialises the Plugin with the plugin module descriptor
|
boolean |
isAdvancedOptionEnabled(@NotNull BuildConfiguration buildConfiguration)
Deprecated.
|
boolean |
isQuietPeriodEnabled()
Deprecated.
Returns true if we were to enable the quiet period
|
protected boolean |
isWorkspaceEmpty(File sourceCodeDirectory)
Deprecated.
|
void |
populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
Deprecated.
Update the current object with data in the
HierarchicalConfiguration |
void |
removeBuildRequirements(@NotNull PlanKey planKey,
@NotNull BuildConfiguration buildConfiguration,
@NotNull RequirementSet requirementSet)
Deprecated.
Extension point for removing requirements when given plugin is excluded from build's builder configuration.
|
void |
setAdministrationConfigurationAccessor(AdministrationConfigurationAccessor administrationConfigurationAccessor)
Deprecated.
|
void |
setBuildDirectoryManager(BuildDirectoryManager buildDirectoryManager)
Deprecated.
|
void |
setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
Deprecated.
|
void |
setChangesetFilterPatternRegex(String changesetFilterPatternRegex)
Deprecated.
|
void |
setCustomVariableContext(CustomVariableContext customVariableContext)
Deprecated.
|
void |
setFeatureManager(FeatureManager featureManager)
Deprecated.
|
void |
setFilterFilePatternOption(String filterFilePatternOption)
Deprecated.
|
void |
setFilterFilePatternRegex(String filterFilePatternRegex)
Deprecated.
|
void |
setTemplateRenderer(TemplateRenderer templateRenderer)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Deprecated.
|
void |
setWorkingDir(File workingDir)
Deprecated.
|
protected String |
substituteString(@Nullable String stringWithValuesToSubstitute)
Deprecated.
|
@NotNull org.apache.commons.configuration.HierarchicalConfiguration |
toConfiguration()
Deprecated.
Generate a
HierarchicalConfiguration from the current state of the object |
static @Nullable BranchMergingAwareRepository |
toMergeCapableRepository(@Nullable RepositoryV2 defaultRepository)
Deprecated.
|
@NotNull ErrorCollection |
validate(@NotNull BuildConfiguration buildConfiguration)
Deprecated.
Validates the properties in the
BuildConfiguration object. |
getTemplateRenderer, populateContextForEdit, populateContextForView, prepareConfigObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHost, getNamecollectChangesSinceLastBuild, isRepositoryDifferentisConfigurationMissing, prepareConfigObjectpublic static final String REPO_PREFIX
public static final String BUILD_TRIGGER_IP
protected RepositoryModuleDescriptorImpl repositoryModuleDescriptor
@Deprecated protected transient TemplateRenderer templateRenderer
@Deprecated protected transient com.opensymphony.xwork2.TextProvider textProvider
@Deprecated protected transient BuildLoggerManager buildLoggerManager
@Deprecated protected transient BuildDirectoryManager buildDirectoryManager
@Deprecated protected transient CustomVariableContext customVariableContext
@Deprecated protected transient FeatureManager featureManager
@Deprecated protected transient AdministrationConfigurationAccessor administrationConfigurationAccessor
public void init(@NotNull
@NotNull com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
InitablePluginModuleinit in interface InitablePluginModuleinit in class BaseBuildConfigurationAwarePluginmoduleDescriptor - Plugin module descriptor@NotNull public @NotNull String getKey()
RepositorygetKey in interface Repository@NotNull public @NotNull String getShortKey()
RepositorygetShortKey in interface Repository@NotNull public @NotNull String getLocationIdentifier()
RepositorygetLocationIdentifier in interface Repositorypublic String getDescription()
getDescription in interface DescriptionProviderpublic void addDefaultValues(@NotNull
@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePluginRenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)addDefaultValues in interface BuildConfigurationAwarePluginaddDefaultValues in class BaseBuildConfigurationAwarePluginbuildConfiguration - -public void customizeBuildRequirements(@NotNull
@NotNull PlanKey planKey,
@NotNull
@NotNull BuildConfiguration buildConfiguration,
@NotNull
@NotNull RequirementSet requirementSet)
ConfigurablePlugincustomizeBuildRequirements in interface ConfigurablePlugincustomizeBuildRequirements in class BaseConfigurablePluginplanKey - key of Plan for which requirements has to be removed.buildConfiguration - source of information for customizing build requirementsrequirementSet - requirements to be customizedpublic void removeBuildRequirements(@NotNull
@NotNull PlanKey planKey,
@NotNull
@NotNull BuildConfiguration buildConfiguration,
@NotNull
@NotNull RequirementSet requirementSet)
ConfigurablePluginremoveBuildRequirements in interface ConfigurablePluginremoveBuildRequirements in class BaseConfigurablePluginplanKey - key of Plan for which requirements has to be removed.buildConfiguration - source of information for customizing build requirementsrequirementSet - requirements to be customizedprotected int getMaxCommitsToReturn()
@NotNull public @NotNull BuildRepositoryChanges collectChangesForRevision(@NotNull @NotNull PlanKey planKey, @NotNull @NotNull String targetRevision) throws RepositoryException
OnceOffCapableRepositorycollectChangesForRevision in interface OnceOffCapableRepositoryRepositoryException - if something goes wrong@Nullable @Deprecated public @Nullable String getViewHtml(@NotNull @NotNull Plan plan)
StandaloneRepository.getViewHtml()RenderableBuildConfigurationgetViewHtml in interface RenderableBuildConfigurationgetViewHtml in class BaseBuildConfigurationAwarePluginplan - for which view HTML has to be rendered.@Nullable @Deprecated public @Nullable String getEditHtml(@NotNull @NotNull BuildConfiguration buildConfiguration, @Nullable @Nullable Plan plan)
StandaloneRepository.getEditHtml(org.apache.commons.configuration.HierarchicalConfiguration)RenderableBuildConfigurationgetEditHtml in interface RenderableBuildConfigurationgetEditHtml in class BaseBuildConfigurationAwarePluginbuildConfiguration - BuildConfiguration for which edit HTML has to be rendered.plan - Plan for which edit HTML has to be rendered. May be null during creation phase of plan.@Nullable public @Nullable String getMinimalEditHtml(@NotNull @NotNull BuildConfiguration buildConfiguration)
RepositorygetMinimalEditHtml in interface RepositorybuildConfiguration - BuildConfiguration object@Deprecated public String getAdvancedViewHtml(@NotNull @NotNull Plan plan)
StandaloneRepository.getAdvancedViewHtml()getAdvancedViewHtml in interface AdvancedConfigurationAwareRepository@Deprecated public String getAdvancedEditHtml(@NotNull @NotNull BuildConfiguration buildConfiguration, @Nullable @Nullable Plan plan)
StandaloneRepository.getAdvancedEditHtml(org.apache.commons.configuration.HierarchicalConfiguration)getAdvancedEditHtml in interface AdvancedConfigurationAwareRepository@Nullable public @Nullable String getMavenPomCheckoutAccessEditHtml(@NotNull @NotNull BuildConfiguration buildConfiguration)
@Nullable public @Nullable String getBranchIntegrationEditHtml()
@NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePluginBuildConfiguration object. The name of the properties match those passed
in through the form fragments in RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) template.validate in interface BuildConfigurationAwarePluginvalidate in class BaseBuildConfigurationAwarePluginbuildConfiguration - -ErrorCollection keyed by the field name.public void populateFromConfig(@NotNull
@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfigHierarchicalConfigurationpopulateFromConfig in interface ConvertibleFromConfig@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfigHierarchicalConfiguration from the current state of the objecttoConfiguration in interface ConvertibleFromConfigHierarchicalConfiguration. Never nullpublic boolean isQuietPeriodEnabled()
QuietPeriodAwareRepositoryisQuietPeriodEnabled in interface QuietPeriodAwareRepositorypublic int getQuietPeriod()
QuietPeriodAwareRepositorygetQuietPeriod in interface QuietPeriodAwareRepositorypublic int getMaxRetries()
QuietPeriodAwareRepositorygetMaxRetries in interface QuietPeriodAwareRepositorypublic boolean isAdvancedOptionEnabled(@NotNull
@NotNull BuildConfiguration buildConfiguration)
public void setWorkingDir(File workingDir)
public File getWorkingDirectory()
@NotNull public @NotNull File getSourceCodeDirectory(@NotNull @NotNull PlanKey planKey) throws RepositoryException
getSourceCodeDirectory in interface RepositoryV2planKey - Plan keyRepositoryException - A generic failure@NotNull public @NotNull ErrorCollection checkConnection()
RepositorycheckConnection in interface RepositoryErrorCollection must not be null. The errors should be translated to error messages, rather than
field errors.protected String substituteString(@Nullable @Nullable String stringWithValuesToSubstitute)
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
@Deprecated public void setTemplateRenderer(TemplateRenderer templateRenderer)
setTemplateRenderer in class BaseBuildConfigurationAwarePluginpublic String getFilterFilePatternOption()
IncludeExcludeAwareRepositorygetFilterFilePatternOption in interface IncludeExcludeAwareRepositorypublic void setFilterFilePatternOption(String filterFilePatternOption)
public String getFilterFilePatternRegex()
IncludeExcludeAwareRepositorygetFilterFilePatternRegex in interface IncludeExcludeAwareRepositorypublic void setFilterFilePatternRegex(String filterFilePatternRegex)
public String getChangesetFilterPatternRegex()
FilterChangesetAwareRepositorygetChangesetFilterPatternRegex in interface FilterChangesetAwareRepositorypublic void setChangesetFilterPatternRegex(String changesetFilterPatternRegex)
public Collection<String> getSystemWideExclusionPatterns()
FilterChangesetAwareRepositorygetSystemWideExclusionPatterns in interface FilterChangesetAwareRepositorypublic void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
public void setBuildDirectoryManager(BuildDirectoryManager buildDirectoryManager)
protected boolean isWorkspaceEmpty(File sourceCodeDirectory)
public void setCustomVariableContext(CustomVariableContext customVariableContext)
public void setFeatureManager(FeatureManager featureManager)
public void setAdministrationConfigurationAccessor(AdministrationConfigurationAccessor administrationConfigurationAccessor)
@Nullable public static @Nullable BranchMergingAwareRepository toMergeCapableRepository(@Nullable @Nullable RepositoryV2 defaultRepository)
@Deprecated public static TriggerModuleDescriptor getPollingTriggerModule()
@Deprecated public TriggerModuleDescriptor getDefaultTriggerModule()
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.