Class AutoMergeBuildFeature

    • Constructor Detail

      • AutoMergeBuildFeature

        public AutoMergeBuildFeature​(@NotNull
                                     BranchSpecs specs)
    • 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

        @Nullable
        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.
      • 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.
      • 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:
        getMergeOptions in interface MergeOptionsFactory
        Parameters:
        resolvedParams - resolved parameters of this build feature
        build - a finished build of interest
        Returns:
        see above
      • 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.