Class AutoMergeBuildFeature
- java.lang.Object
 - 
- jetbrains.buildServer.serverSide.BuildFeature
 - 
- jetbrains.buildServer.controllers.admin.buildFeatures.autoMerge.AutoMergeBuildFeature
 
 
 
- 
- All Implemented Interfaces:
 ExecutorModeSupport,Describable,ServerExtension,TeamCityExtension,MergeOptionsFactory
public class AutoMergeBuildFeature extends BuildFeature implements MergeOptionsFactory
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class jetbrains.buildServer.serverSide.BuildFeature
BuildFeature.PlaceToShow 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static StringFEATURE_TYPE 
- 
Constructor Summary
Constructors Constructor Description AutoMergeBuildFeature(BranchSpecs specs) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdescribeParameters(Map<String,String> params)Returns parameters description of the build feature, will be used in the TeamCity UI to describe this feature settings.Map<String,String>getDefaultParameters()StringgetDisplayName()User presentable name of the feature.StringgetEditParametersUrl()AutoMergeOptionsgetMergeOptions(Map<String,String> resolvedParams, SBuild build, boolean onlyAfterBuildFinish)Returns merge options for given build feature resolved parameters and a finished build.PropertiesProcessorgetParametersProcessor()Returns parameters processor which will be used to validate and alter parameters specified by user.StringgetType()Type of the feature, must be unique among all of the features.booleanisRequiresAgent()- 
Methods inherited from class jetbrains.buildServer.serverSide.BuildFeature
getParametersProcessor, getPlaceToShow, getRequirements, getSupportType, isAvailable, isMultipleFeaturesPerBuildTypeAllowed, isUnchangedBySettingsFreeze 
 - 
 
 - 
 
- 
- 
Field Detail
- 
FEATURE_TYPE
public static final String FEATURE_TYPE
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
AutoMergeBuildFeature
public AutoMergeBuildFeature(@NotNull BranchSpecs specs) 
 - 
 
- 
Method Detail
- 
getType
@NotNull public String getType()
Description copied from class:BuildFeatureType of the feature, must be unique among all of the features.- Specified by:
 getTypein classBuildFeature- Returns:
 - type of the feature
 
 
- 
getDisplayName
@NotNull public String getDisplayName()
Description copied from class:BuildFeatureUser presentable name of the feature.- Specified by:
 getDisplayNamein interfaceDescribable- Specified by:
 getDisplayNamein classBuildFeature- Returns:
 - name of the feature to show in the user interface.
 
 
- 
getEditParametersUrl
@Nullable public String getEditParametersUrl()
- Specified by:
 getEditParametersUrlin classBuildFeature- Returns:
 - absolute path to a JSP file or controller for editing parameters, should not include context path.
 
 
- 
getDefaultParameters
@NotNull public Map<String,String> getDefaultParameters()
- Overrides:
 getDefaultParametersin classBuildFeature- Returns:
 - default parameters
 
 
- 
describeParameters
@NotNull public String describeParameters(@NotNull Map<String,String> params)
Description copied from class:BuildFeatureReturns parameters description of the build feature, will be used in the TeamCity UI to describe this feature settings.- Overrides:
 describeParametersin classBuildFeature- Parameters:
 params- parameters to describe- Returns:
 - short description of parameters.
 
 
- 
getParametersProcessor
@Nullable public PropertiesProcessor getParametersProcessor()
Description copied from class:BuildFeatureReturns parameters processor which will be used to validate and alter parameters specified by user.- Overrides:
 getParametersProcessorin classBuildFeature- Returns:
 - see above
 
 
- 
getMergeOptions
@Nullable public AutoMergeOptions getMergeOptions(@NotNull Map<String,String> resolvedParams, @NotNull SBuild build, boolean onlyAfterBuildFinish)
Returns merge options for given build feature resolved parameters and a finished build. Returns null if sources from build should not be merged- Specified by:
 getMergeOptionsin interfaceMergeOptionsFactory- Parameters:
 resolvedParams- resolved parameters of this build featurebuild- a finished build of interest- Returns:
 - see above
 
 
- 
isRequiresAgent
public boolean isRequiresAgent()
- Overrides:
 isRequiresAgentin classBuildFeature- Returns:
 - true if this build feature has some code which should be executed on the agent during the build. If false is returned then parameters of this feature will not be passed to an agent.
 
 
 - 
 
 -