Class VcsChangeDetection
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<VcsChangeDetectionProperties>
com.atlassian.bamboo.specs.api.builders.repository.VcsChangeDetection
Represents change detection options that can be set when defining a VCS repository in Bamboo.
These option control features around change detection an build triggering, such as: filtering of changes, commit isolation, etc.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected VcsChangeDetectionProperties
build()
changesetFilterPatternRegex
(@Nullable String changesetFilterPatternRegex) Excludes certain changes from being picked up by Bamboo.commitIsolationEnabled
(boolean commitIsolationEnabled) Enables/disables commit isolation.configuration
(@Nullable Map<String, Object> configuration) Sets plugin specific custom configuration.filterFilePatternOption
(@Nullable VcsChangeDetection.FileFilteringOption filterFilePatternOption) Selects method of filtering commits by affected files.filterFilePatternRegex
(@Nullable String filterFilePatternRegex) Sets regular expression to be used when filtering commits by affected files.quietPeriod
(Duration quietPeriod) Deprecated.since 11.0, the quiet period has been removed from Bamboo; this method remains to ensure backward compatibility, but it will be eventually removed.quietPeriodEnabled
(boolean quietPeriodEnabled) Deprecated.since 11.0, the quiet period has been removed from Bamboo; this method remains to ensure backward compatibility, but it will be eventually removed.quietPeriodInSeconds
(int quietPeriodInSeconds) Deprecated.since 11.0, the quiet period has been removed from Bamboo; this method remains to ensure backward compatibility, but it will be eventually removed.quietPeriodMaxRetries
(int maxRetries) Deprecated.since 11.0, the quiet period has been removed from Bamboo; this method remains to ensure backward compatibility, but it will be eventually removed.
-
Constructor Details
-
VcsChangeDetection
public VcsChangeDetection()
-
-
Method Details
-
quietPeriodEnabled
Deprecated.since 11.0, the quiet period has been removed from Bamboo; this method remains to ensure backward compatibility, but it will be eventually removed.Enables/disables quiet period feature on the repository.Quiet period allows you to delay building after a single commit is detected, aggregating multiple commits per build. Feature is disabled by default.
-
quietPeriod
Deprecated.since 11.0, the quiet period has been removed from Bamboo; this method remains to ensure backward compatibility, but it will be eventually removed.Defines quiet period duration, that is time Bamboo should wait after a new change, before initiating a build. -
quietPeriodInSeconds
Deprecated.since 11.0, the quiet period has been removed from Bamboo; this method remains to ensure backward compatibility, but it will be eventually removed.Defines quiet period duration in seconds, that is time Bamboo should wait after a new change, before initiating a build. -
quietPeriodMaxRetries
Deprecated.since 11.0, the quiet period has been removed from Bamboo; this method remains to ensure backward compatibility, but it will be eventually removed.Defines maximum retries count for quiet period, that is how many times Bamboo should check for new changes before initiating a build regardless of the outcome. -
commitIsolationEnabled
Enables/disables commit isolation. Commit isolation forces Bamboo to create one build result for each commit. Feature is supported by Subversion repository only and disabled by default. -
configuration
Sets plugin specific custom configuration.This fields exists for the sole purpose of future extensibility. As of Bamboo version 6.0, no plugins using this field exist.
-
changesetFilterPatternRegex
public VcsChangeDetection changesetFilterPatternRegex(@Nullable @Nullable String changesetFilterPatternRegex) throws PropertiesValidationException Excludes certain changes from being picked up by Bamboo.- Parameters:
changesetFilterPatternRegex
- a regular expression to match the commit messages to be excluded.- Throws:
PropertiesValidationException
-
filterFilePatternOption
public VcsChangeDetection filterFilePatternOption(@Nullable @Nullable VcsChangeDetection.FileFilteringOption filterFilePatternOption) throws PropertiesValidationException Selects method of filtering commits by affected files.Possible values:
- NONE
- filtering off
- INCLUDE_ONLY
- include only commits that affect files with names that match regexp
- EXCLUDE_ALL
- ignore commits that affect files with names that match regexp
- Throws:
PropertiesValidationException
-
filterFilePatternRegex
public VcsChangeDetection filterFilePatternRegex(@Nullable @Nullable String filterFilePatternRegex) throws PropertiesValidationException Sets regular expression to be used when filtering commits by affected files.- Parameters:
filterFilePatternRegex
- a regular expression to match the file to be included / excluded- Throws:
PropertiesValidationException
-
build
- Specified by:
build
in classEntityPropertiesBuilder<VcsChangeDetectionProperties>
- Throws:
PropertiesValidationException
-