Interface VcsChangeDetectionOptionsConfigurator
-
- All Known Implementing Classes:
BitbucketCloudChangeDetectionOptionsConfigurator,BitbucketServerChangeDetectionOptionsConfigurator,DefaultChangeDetectionOptionsConfigurator,GitChangeDetectionOptionsConfigurator,SvnChangeDetectionOptionsConfigurator
public interface VcsChangeDetectionOptionsConfiguratorClass handling change detection options for a repository.- Since:
- 5.14
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHANGESET_FILTER_REGEX_CFG_KEYstatic StringCOMMIT_ISOLATION_OPTION_CFG_KEYstatic StringFILTER_PATTERN_EXCLUDE_OPTIONstatic StringFILTER_PATTERN_INCLUDE_OPTIONstatic StringFILTER_PATTERN_OPTION_CFG_KEYstatic StringFILTER_PATTERN_REGEX_CFG_KEYstatic List<String>HANDLED_OPTIONSList of options handled by Bamboo itself (not plugin specific) These are removed from map given to plugin validator, so plugin focus only on it's own specific options.static StringQUIET_PERIOD_CFG_KEYstatic StringQUIET_PERIOD_ENABLED_CFG_KEYstatic StringQUIET_PERIOD_MAX_RETRIES_CFG_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Map<String,String>generateConfigMap(@NotNull ActionParametersMap actionParametersMap, @Nullable VcsChangeDetectionOptions previousTriggerDefinition)booleanisCommitIsolationSupported()Informs if associated repository type supports commits being broken up into individual buildsbooleanisQuietPeriodSupported()Informs if associated repository type works with Bamboo's standard quiet period handling.voidpopulateContextForCreate(@NotNull Map<String,Object> context)voidpopulateContextForEdit(@NotNull Map<String,Object> context, @NotNull VcsChangeDetectionOptions triggerDefinition)voidpopulateContextForView(@NotNull Map<String,Object> context, @NotNull VcsChangeDetectionOptions triggerDefinition)voidvalidate(@NotNull ActionParametersMap actionParametersMap, @NotNull ErrorCollection errorCollection)
-
-
-
Field Detail
-
QUIET_PERIOD_ENABLED_CFG_KEY
static final String QUIET_PERIOD_ENABLED_CFG_KEY
- See Also:
- Constant Field Values
-
QUIET_PERIOD_CFG_KEY
static final String QUIET_PERIOD_CFG_KEY
- See Also:
- Constant Field Values
-
QUIET_PERIOD_MAX_RETRIES_CFG_KEY
static final String QUIET_PERIOD_MAX_RETRIES_CFG_KEY
- See Also:
- Constant Field Values
-
CHANGESET_FILTER_REGEX_CFG_KEY
static final String CHANGESET_FILTER_REGEX_CFG_KEY
- See Also:
- Constant Field Values
-
FILTER_PATTERN_OPTION_CFG_KEY
static final String FILTER_PATTERN_OPTION_CFG_KEY
- See Also:
- Constant Field Values
-
FILTER_PATTERN_REGEX_CFG_KEY
static final String FILTER_PATTERN_REGEX_CFG_KEY
- See Also:
- Constant Field Values
-
FILTER_PATTERN_EXCLUDE_OPTION
static final String FILTER_PATTERN_EXCLUDE_OPTION
- See Also:
- Constant Field Values
-
FILTER_PATTERN_INCLUDE_OPTION
static final String FILTER_PATTERN_INCLUDE_OPTION
- See Also:
- Constant Field Values
-
COMMIT_ISOLATION_OPTION_CFG_KEY
static final String COMMIT_ISOLATION_OPTION_CFG_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
populateContextForCreate
void populateContextForCreate(@NotNull @NotNull Map<String,Object> context)
-
populateContextForEdit
void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull VcsChangeDetectionOptions triggerDefinition)
-
populateContextForView
void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull VcsChangeDetectionOptions triggerDefinition)
-
validate
void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull ErrorCollection errorCollection)
-
generateConfigMap
@NotNull @NotNull Map<String,String> generateConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable VcsChangeDetectionOptions previousTriggerDefinition)
-
isQuietPeriodSupported
boolean isQuietPeriodSupported()
Informs if associated repository type works with Bamboo's standard quiet period handling. Depending on the result, proper UI will be rendered (or not) and appropriate options will be added to the configMap.- Returns:
- true iff Bamboo should include standard quiet period options in the configuration.
-
isCommitIsolationSupported
boolean isCommitIsolationSupported()
Informs if associated repository type supports commits being broken up into individual builds- Returns:
- true if Bamboo should break the single build changes object into a list of changes
-
-