Interface BranchSpecProvider

    • Method Detail

      • getBranchSpecs

        @NotNull
        Set<String> getBranchSpecs​(@NotNull
                                   BuildTypeEx buildType,
                                   @NotNull
                                   VcsRootInstance root,
                                   @NotNull
                                   VcsRepositoryState state)
        Called to calculate logical branch name from vcs branch name. Should return additional patterns for given buildType, VCS root and the state of the root.
        Parameters:
        buildType - buildType of interest
        root - VCS root of interest
        state - state of vcs root, state can be incomplete, e.g. contain a single branch of interest
        Returns:
        see above
      • getBranchesForChangesCollecting

        @NotNull
        Set<String> getBranchesForChangesCollecting​(@NotNull
                                                    BuildTypeEx buildType,
                                                    @NotNull
                                                    VcsRootInstance root,
                                                    @NotNull
                                                    VcsRepositoryState state)
        Called during collecting changes for the VCS root. Should return additional branches where changes should be collected.
        Parameters:
        buildType - buildType of interest
        root - VCS root of interest
        state - full unfiltered current state of vcs root
        Returns:
        see above
      • includeIntoOwnBranchSpecsOf

        default boolean includeIntoOwnBranchSpecsOf​(@NotNull
                                                    BuildTypeEx buildType)
        Returns true if branch specs supplied by the provider are to be included into the own branch specs of a VCS root instance by BuildTypeEx::getBranchSpec(VcsRootInstance). False otherwise.
        Parameters:
        buildType -
        Returns:
        see above
        Since:
        2018.1