|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.vcs.ServerVcsSupport
jetbrains.buildServer.vcs.VcsSupport
ServerVcsSupport instead
public abstract class VcsSupport
This class should be implemented in order to support any version control system in TeamCity server. Each particular implementation can implement any of interfaces:
AgentSideCheckoutAbility marker indicates that the support allows to check sources out on agent.
VcsPersonalSupport produces possibility to match full version control file path into relative one.
RootMerger allows to merge several vcs roots into one if it is possible.
| Constructor Summary | |
|---|---|
VcsSupport()
Deprecated. |
|
| Method Summary | |
|---|---|
boolean |
allowSourceCaching()
Deprecated. This method is a part of the new VCS support API and isn't called for derivatives of VcsSupport. |
abstract java.util.List<ModificationData> |
collectBuildChanges(VcsRoot root,
java.lang.String fromVersion,
java.lang.String currentVersion,
CheckoutRules checkoutRules)
Deprecated. |
java.util.List<ModificationData> |
collectChanges(VcsRoot root,
java.lang.String fromVersion,
java.lang.String currentVersion,
CheckoutRules checkoutRules)
Deprecated. Returns list of the changes between two revisions given. |
BuildPatchByCheckoutRules |
getBuildPatchPolicy()
Deprecated. |
CollectChangesPolicy |
getCollectChangesPolicy()
Deprecated. |
VcsFileContentProvider |
getContentProvider()
Deprecated. |
RootMerger |
getRootMerger()
Deprecated. |
TestConnectionSupport |
getTestConnectionSupport()
Deprecated. |
boolean |
ignoreServerCachesFor(VcsRoot root)
Deprecated. Return true to disable caching of patches built with fromVersion = null for specified VCS root. |
boolean |
isAgentSideCheckoutAvailable()
Deprecated. |
boolean |
isCurrentVersionExpensive()
Deprecated. If the obtaining current version is an expensive operation (see VcsSupportCore.getCurrentVersion(VcsRoot))
the implementation may optimize performance by returning true. |
abstract boolean |
isTestConnectionSupported()
Deprecated. Returns true if test connection is supported |
boolean |
sourcesUpdatePossibleIfChangesNotFound(VcsRoot root)
Deprecated. Must return true if source files in the build checkout directory can be updated even if no changes were detected between some versions. |
| Methods inherited from class jetbrains.buildServer.vcs.ServerVcsSupport |
|---|
getCore, getLabelingSupport, getPersonalSupport, getUrlSupport, isDAGBasedVcs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jetbrains.buildServer.vcs.BuildPatchByCheckoutRules |
|---|
buildPatch |
| Methods inherited from interface jetbrains.buildServer.vcs.VcsFileContentProvider |
|---|
getContent, getContent |
| Methods inherited from interface jetbrains.buildServer.vcs.VcsSupportConfig |
|---|
describeVcsRoot, getDefaultVcsProperties, getDisplayName, getName, getVcsPropertiesProcessor, getVcsSettingsJspFilePath, getVersionComparator, getVersionDisplayName, isDAGBasedVcs |
| Methods inherited from interface jetbrains.buildServer.vcs.TestConnectionSupport |
|---|
testConnection |
| Methods inherited from interface jetbrains.buildServer.vcs.VcsSupportCore |
|---|
getCurrentVersion |
| Constructor Detail |
|---|
public VcsSupport()
| Method Detail |
|---|
public boolean isCurrentVersionExpensive()
VcsSupportCoreVcsSupportCore.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 VcsSupportCore.getCurrentVersion(VcsRoot) will be called first
and then the result will be passed to the change collector as the upper version.
isCurrentVersionExpensive in interface VcsSupportCoreisCurrentVersionExpensive in class ServerVcsSupportCollectChangesPolicy@NotNull public VcsFileContentProvider getContentProvider()
getContentProvider in interface VcsSupportContext@NotNull public CollectChangesPolicy getCollectChangesPolicy()
getCollectChangesPolicy in interface VcsSupportContext
public abstract java.util.List<ModificationData> collectBuildChanges(VcsRoot root,
@NotNull
java.lang.String fromVersion,
@NotNull
java.lang.String currentVersion,
CheckoutRules checkoutRules)
throws VcsException
VcsException
public java.util.List<ModificationData> collectChanges(@NotNull
VcsRoot root,
@NotNull
java.lang.String fromVersion,
@Nullable
java.lang.String currentVersion,
@NotNull
CheckoutRules checkoutRules)
throws VcsException
CollectChangesByCheckoutRules
collectChanges in interface CollectChangesByCheckoutRulesroot - 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 pathes according to include rules.
VcsException - throw this exception if some problem occurred while
collecting chanegs or changes cannot be collected because of invalid configuration.
Localized message will be shown on the web page for the corresponding projectservice method, which allows you to collect changes for each root include rule.@NotNull public BuildPatchByCheckoutRules getBuildPatchPolicy()
getBuildPatchPolicy in interface VcsSupportContextpublic TestConnectionSupport getTestConnectionSupport()
getTestConnectionSupport in interface VcsSupportContextgetTestConnectionSupport in class ServerVcsSupportpublic abstract boolean isTestConnectionSupported()
public boolean isAgentSideCheckoutAvailable()
isAgentSideCheckoutAvailable in interface VcsSupportConfigisAgentSideCheckoutAvailable in class ServerVcsSupport@Nullable public RootMerger getRootMerger()
getRootMerger in interface VcsSupportContextgetRootMerger in class ServerVcsSupport
public boolean ignoreServerCachesFor(@NotNull
VcsRoot root)
public boolean sourcesUpdatePossibleIfChangesNotFound(@NotNull
VcsRoot root)
VcsSupportCore
sourcesUpdatePossibleIfChangesNotFound in interface VcsSupportCoreroot - VCS root
public boolean allowSourceCaching()
allowSourceCaching in interface VcsSupportCoreallowSourceCaching in class ServerVcsSupportVcsSupportCore.allowSourceCaching()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||