Class BuildFailureOnMetricFeature

    • Method Detail

      • getType

        @NotNull
        public String getType()
        Description copied from class: BuildFeature
        Type of the feature, must be unique among all of the features.
        Specified by:
        getType in class BuildFeature
        Returns:
        type of the feature
      • getEditParametersUrl

        public String getEditParametersUrl()
        Specified by:
        getEditParametersUrl in class BuildFeature
        Returns:
        absolute path to a JSP file or controller for editing parameters, should not include context path.
      • process

        public Collection<InvalidProperty> process​(Map<String,​String> properties)
        Description copied from interface: PropertiesProcessor
        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.

        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:
        process in interface PropertiesProcessor
        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: BuildFeature
        Returns parameters description of the build feature, will be used in the TeamCity UI to describe this feature settings.
        Overrides:
        describeParameters in class BuildFeature
        Parameters:
        params - parameters to describe
        Returns:
        short description of parameters.
      • isRequiresAgent

        public boolean isRequiresAgent()
        Overrides:
        isRequiresAgent in class BuildFeature
        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.