Class VcsSupport

    • Constructor Detail

      • VcsSupport

        public VcsSupport()
        Deprecated.
    • Method Detail

      • isCurrentVersionExpensive

        public boolean isCurrentVersionExpensive()
        Deprecated.
        Description copied from interface: VcsSupportCore
        If the obtaining current version is an expensive operation (see CollectSingleStatePolicy#getCurrentVersion(VcsRoot)}) the implementation may optimize performance by returning true. In this case collecting changes for the current version will be done without specifying upper version. Otherwise CollectSingleStatePolicy.getCurrentVersion(VcsRoot) will be called first and then the result will be passed to the change collector as the upper version.
        Specified by:
        isCurrentVersionExpensive in interface VcsSupportCore
        Returns:
        true if the obtaining current version is an expensive operation.
        See Also:
        CollectChangesPolicy
      • collectChanges

        public List<ModificationData> collectChanges​(@NotNull
                                                     VcsRoot root,
                                                     @NotNull
                                                     String fromVersion,
                                                     @Nullable
                                                     String currentVersion,
                                                     @NotNull
                                                     CheckoutRules checkoutRules)
                                              throws VcsException
        Deprecated.
        Description copied from interface: CollectSingleStateChangesByCheckoutRules
        Returns list of the changes between two revisions given. Check VcsSupportCore.isCurrentVersionExpensive() if you like to have null for currentVersion
        Specified by:
        collectChanges in interface CollectSingleStateChangesByCheckoutRules
        Parameters:
        root - current settings.
        fromVersion - collect changes from this version.
        currentVersion - collect changes up to this version.
        checkoutRules - checkout rules built on union of all checkout rules of all configurations connected to the root. Include rules have 'from' part the same as 'to' one so you can don't map file paths according to include rules. see jetbrains.buildServer.vcs.VcsSupportUtil#collectBuildChanges(jetbrains.buildServer.vcs.VcsRoot, String, String, jetbrains.buildServer.vcs.CheckoutRules, jetbrains.buildServer.CollectChangesByIncludeRules) service method, which allows you to collect changes for each root include rule.
        Returns:
        list of changes between specified versions.
        Throws:
        VcsException - throw this exception if some problem occurred while collecting changes or changes cannot be collected because of invalid configuration. Localized message will be shown on the web page for the corresponding project
      • isTestConnectionSupported

        public abstract boolean isTestConnectionSupported()
        Deprecated.
        Returns true if test connection is supported
        Returns:
        if test connection supported
      • isAgentSideCheckoutAvailable

        public boolean isAgentSideCheckoutAvailable()
        Deprecated.
        Specified by:
        isAgentSideCheckoutAvailable in interface VcsSupportConfig
        Returns:
        boolean value indicating agent side checkout ability support
      • sourcesUpdatePossibleIfChangesNotFound

        public boolean sourcesUpdatePossibleIfChangesNotFound​(@NotNull
                                                              VcsRoot root)
        Deprecated.
        Description copied from interface: VcsSupportCore
        Must return true if source files in the build checkout directory can be updated even if no changes were detected between some versions. This is possible for example if VCS support plugin can't detect changes when a tag/label is moved. Note that if true is returned for some VCS root, plugin should be able to correctly build patch for this VCS root.
        For example, if plugin performs changes collecting in the buildPatch method and then creates patch by detected changes, it should create clean patch for VCS root for which it returned true in this method.
        Specified by:
        sourcesUpdatePossibleIfChangesNotFound in interface VcsSupportCore
        Parameters:
        root - VCS root
        Returns:
        always true by default