Class BuildFailureOnMetricFeature
- java.lang.Object
 - 
- jetbrains.buildServer.serverSide.BuildFeature
 - 
- jetbrains.buildServer.buildFailures.BuildFailureOnMetricFeature
 
 
 
- 
- All Implemented Interfaces:
 ExecutorModeSupport,Describable,PropertiesProcessor,ServerExtension,TeamCityExtension
public class BuildFailureOnMetricFeature extends BuildFeature implements PropertiesProcessor
- Author:
 - kir
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class jetbrains.buildServer.serverSide.BuildFeature
BuildFeature.PlaceToShow 
 - 
 
- 
Constructor Summary
Constructors Constructor Description BuildFailureOnMetricFeature(ExtensionHolder extensionHolder, RevisionRuleBuildFinders buildFinders, ExecutorServices executorServices) 
- 
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()PropertiesProcessorgetParametersProcessor()Returns parameters processor which will be used to validate and alter parameters specified by user.BuildFeature.PlaceToShowgetPlaceToShow()Return the UI location for build feature settingsStringgetType()Type of the feature, must be unique among all of the features.booleanisRequiresAgent()Collection<InvalidProperty>process(Map<String,String> properties)Will be called when user attempts to save properties from the user interface or when runner parameters are used to compute agent compatibility for a build configuration.- 
Methods inherited from class jetbrains.buildServer.serverSide.BuildFeature
getParametersProcessor, getRequirements, getSupportType, isAvailable, isMultipleFeaturesPerBuildTypeAllowed, isUnchangedBySettingsFreeze 
 - 
 
 - 
 
- 
- 
Field Detail
- 
KEY
@NonNls public static final String KEY
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
BuildFailureOnMetricFeature
public BuildFailureOnMetricFeature(@NotNull ExtensionHolder extensionHolder, @NotNull RevisionRuleBuildFinders buildFinders, @NotNull ExecutorServices executorServices) 
 - 
 
- 
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
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
public Map<String,String> getDefaultParameters()
- Overrides:
 getDefaultParametersin classBuildFeature- Returns:
 - default parameters
 
 
- 
getParametersProcessor
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
 
 
- 
process
public Collection<InvalidProperty> process(Map<String,String> properties)
Description copied from interface:PropertiesProcessorWill be called when user attempts to save properties from the user interface or when runner parameters are used to compute agent compatibility for a build configuration. Properties map passed as argument can be verified or modified by the processor (for example, one could remove all properties with empty values from this map). If processor was called during saving properties to a configuration file, then modified map will be stored without changes.- Specified by:
 processin interfacePropertiesProcessor- Parameters:
 properties- properties to process- Returns:
 - collection of invalid properties, if this collection is not empty properties will not be saved into the configuration file.
 
 
- 
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.
 
 
- 
getPlaceToShow
public BuildFeature.PlaceToShow getPlaceToShow()
Description copied from class:BuildFeatureReturn the UI location for build feature settings- Overrides:
 getPlaceToShowin classBuildFeature- Returns:
 - see above
 - See Also:
 BuildFeature.PlaceToShow
 
- 
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.
 
 
 - 
 
 -