Package com.atlassian.bamboo.v2.build
Interface BuildConfigurationAwarePlugin<T extends com.atlassian.plugin.ModuleDescriptor>
- All Superinterfaces:
BambooPluginModule
,InitablePluginModule<T>
,RenderableBuildConfiguration
- All Known Subinterfaces:
BitbucketDelegatedRepository
,BranchAwareRepository
,BranchDetectionCapableRepository
,BranchInformationProvider
,BranchingAwareRepository
,BranchMergingAwareRepository
,BuildTriggerCondition
,CachingAwareRepository
,CheckoutCustomRevisionDataAwareRepository
,CommitIsolationAwareRepository
,CommitUrlProvider
,ConfigurablePlugin<T>
,CustomRevisionDataAwareRepository
,CustomSourceDirectoryAwareRepository
,CustomVariableProviderRepository
,DependenciesPlanConfigurationPlugin
,DeploymentsAwareCommitUrlProvider
,EditActionAwareRepository
,ImportExportAwarePlugin<T,
,P> IncludeExcludeAwareRepository
,InitialBuildAwareRepository
,MavenPomAccessorCapableRepository
,MiscellaneousPlanConfigurationPlugin
,OnceOffCapableRepository
,PlanConfigurationUiPlugin
,PreparableRepository
,PushCapableRepository
,QuietPeriodAwareRepository
,Repository
,RepositoryEventAware
,RequirementsAwareRepository
,RequiresRepositoryData
,SelectableAuthenticationRepository
,StandaloneRepository
,StashRepository
,TaggingAwareRepository
,TestConnectionAwareRepository
,WebRepositoryViewer
- All Known Implementing Classes:
AbstractRepository
,AbstractStandaloneRepository
,AbstractWebRepositoryViewer
,ArtifactHandlerForPlanConfigurator
,AutomaticDependencyManagementPlugin
,BaseBuildConfigurationAwarePlugin
,BaseConfigurableBuildPlugin
,BaseConfigurablePlugin
,BitbucketRepository
,BrokenBuildPostProcessor
,BuildExpiryPerPlanPlugin
,BuildLabellerCustomBuildProcessor
,BuildMonitoringPerPlanPlugin
,CloverBuildProcessor
,ConcurrentBuildsPlanConfigurationPlugin
,DefaultWebRepositoryViewer
,FisheyeWebRepositoryViewer
,GitHubRepository
,GitRepository
,HungBuildPlanConfigurationPlugin
,LegacyStashWebRepositoryViewer
,NoWebRepositoryViewer
,NullRepository
,PlansGreenCondition
,SkipTestHistoryConfigurationItem
,StashRepositoryImpl
,StashWebRepositoryViewer
,SvnRepository
public interface BuildConfigurationAwarePlugin<T extends com.atlassian.plugin.ModuleDescriptor>
extends InitablePluginModule<T>, RenderableBuildConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDefaultValues
(@NotNull BuildConfiguration buildConfiguration) Extension point for adding default values to the form forRenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
default boolean
isConfigurationMissing
(@NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration) Checks if HierarchicalConfiguration objects contains plugin's configuration values.void
prepareConfigObject
(@NotNull BuildConfiguration buildConfiguration) Do any preprocessing work before validation occurs.@NotNull ErrorCollection
validate
(@NotNull BuildConfiguration buildConfiguration) Validates the properties in theBuildConfiguration
object.Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getEditHtml, getViewHtml
-
Method Details
-
addDefaultValues
Extension point for adding default values to the form forRenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
- Parameters:
buildConfiguration
- -
-
prepareConfigObject
Do any preprocessing work before validation occurs. For repository, builder and web repository plugins this will only be called if the plugin is select by the user.- Parameters:
buildConfiguration
- -
-
validate
Validates the properties in theBuildConfiguration
object. The name of the properties match those passed in through the form fragments inRenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
template.- Parameters:
buildConfiguration
- -- Returns:
ErrorCollection
keyed by the field name.
-
isConfigurationMissing
default boolean isConfigurationMissing(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration) Checks if HierarchicalConfiguration objects contains plugin's configuration values. Should return true if call to addDefaultValues() is necessary to initialize HierarchicalConfiguration.- Parameters:
configuration
- HierarchicalConfiguration object- Returns:
- true if configuration is not present in HierarchicalConfiguration and should be set to defaults
- Since:
- 5.14
-