Interface BuildTypeTemplateEx

    • Method Detail

      • getLastConfigModificationAction

        @Nullable
        AuditLogAction getLastConfigModificationAction()
      • inline

        @NotNull
        BuildTypeTemplateEx inline()
        Creates a temporary copy of this template with all settings inherited from a project or a template inlined.
        Since:
        2020.1.2
      • dispose

        void dispose()
      • isBranchSpecDefined

        boolean isBranchSpecDefined​(boolean processDependencies)
      • getVcsBranches

        @NotNull
        List<Branch> getVcsBranches​(boolean includeDependenciesBranches)
        All VCS branches from VCS roots attached to this template and VCS branches from dependencies (if parameter includeDependenciesBranches is true).
        Parameters:
        includeDependenciesBranches - whether to add branches from dependencies to the list or not
        Returns:
        see above
      • replaceVcsRoot

        boolean replaceVcsRoot​(@NotNull
                               SVcsRoot oldVcsRoot,
                               @NotNull
                               SVcsRoot newVcsRoot)
        Replaces existing VCS root entry in settings with a new one, maintaining the order of the root entries
        Parameters:
        oldVcsRoot - VCS root to be replaced
        newVcsRoot - VCS root to insert instead
        Returns:
        true if VCS root was actually replaced, false otherwise (the root to be replaced did not exist or the new root already existed)
        Since:
        10.0
      • setVcsRoots

        boolean setVcsRoots​(@NotNull
                            Collection<SVcsRoot> vcsRoots)
        Sets VCS roots. All existing VCS roots that are not present in vcsRoots are deleted, all other existing VCS roots are reordered if necessary, but retain their original checkout rules.
        Parameters:
        vcsRoots -
        Returns:
        true if any changes occured
        Since:
        10.0
      • setEditable

        void setEditable​(boolean editable)
        Enables or disables editing of the template in web UI, see also SPersistentEntity.isReadOnly(). SBuildType.persist() method must be called afterwards.
        Parameters:
        editable - true to enable editing and false to disable
      • getBranchSpec

        @NotNull
        BranchSpec getBranchSpec​(@NotNull
                                 SVcsRoot root)
        Returns branch specification for specified parent root
        Parameters:
        root - root of interest
        Returns:
        see above
        Since:
        2017.1
      • isDefaultBranchExcluded

        boolean isDefaultBranchExcluded()
        Returns true if any of VCS roots attached to configuration exclude the default branch
        Returns:
        see above
        Since:
        2017.1
      • isDeploymentBuildType

        boolean isDeploymentBuildType()
        Returns:
        true if build configuration inherited from this template is doing deployment
        Since:
        2017.1
      • isCompositeBuildType

        boolean isCompositeBuildType()
        Specified by:
        isCompositeBuildType in interface BuildTypeSettings
        Returns:
        true if build configuration inherited from this template is composite
        Since:
        2017.2
      • isAgentLessBuildType

        boolean isAgentLessBuildType()
        Since:
        2020.2
      • isEmptyUuid

        boolean isEmptyUuid()
        Returns:
        true if this template has an empty uuid in its config on disk
      • getUsagesAsEnforcedSettings

        Collection<SProject> getUsagesAsEnforcedSettings()
        Returns:
        a collection of projects that use the template to represent their enforced settings
      • getNumberOfUsagesAsEnforcedSettings

        int getNumberOfUsagesAsEnforcedSettings()
        Returns:
        a number of projects that use the template to represent their enforced settings
      • containsOwnVcsRoot

        boolean containsOwnVcsRoot​(long vcsRootId)
        Description copied from interface: BuildTypeSettings
        Returns true if VCS root with specified id is attached directly and is not inherited via a template
        Specified by:
        containsOwnVcsRoot in interface BuildTypeSettings
        Parameters:
        vcsRootId - vcs root id
        Returns:
        true if the specified VCS root is attached to the temlate directly and is not inherited
        Since:
        2019.2
      • createDummyBuildPromotion

        BuildPromotion createDummyBuildPromotion()
        Returns:
        dummy build promotion
        Since:
        2019.2.2