Package jetbrains.buildServer.vcs
Interface VcsSupportConfig
-
- All Known Subinterfaces:
VcsSupportCore
- All Known Implementing Classes:
MockBranchSupport
,MockVcsSupport
,ServerVcsSupport
,UnknownVcsSupport
,VcsSupport
public interface VcsSupportConfig
Provides configuration information for a VCS support implementation- Since:
- 4.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description String
describeVcsRoot(VcsRoot vcsRoot)
Returns presentable text describing specified vcs root, for example: svn: http://www.somehost.com/project/default Map<String,String>
getCheckoutProperties(VcsRoot root)
Must return a map of vcs root properties significant for checkout operation.Map<String,String>
getDefaultVcsProperties()
Returns default VCS property values.String
getDisplayName()
Returns name to be shown in the UI.String
getName()
Unique VCS identifier among other installed plugins.default Map<String,String>
getServerCheckoutProperties(VcsRoot root)
This method is used to calculate caching key for VCSEntries when checkout on server mode is used.PropertiesProcessor
getVcsPropertiesProcessor()
Validator for the version control settings as displayed on configuration page for the VCS root.String
getVcsSettingsJspFilePath()
Version control settings editor page.Comparator<String>
getVersionComparator()
Returns comparator which allows to sort modifications by their version.String
getVersionDisplayName(String version, VcsRoot root)
Returns readable presentation of version (this format should be the same as DisplayVersion of VcsModification)default boolean
isAgentSideCheckoutAvailable()
default boolean
isDAGBased(VcsRoot root)
default boolean
isDAGBasedVcs()
Deprecated.Not used anymore since 10.0, useisDAGBased(VcsRoot)
to provide actual implementation
-
-
-
Method Detail
-
getName
@NotNull String getName()
Unique VCS identifier among other installed plugins.- Returns:
- - unique version control name
-
getDisplayName
@NotNull String getDisplayName()
Returns name to be shown in the UI.- Returns:
- name to be shown to user
-
getVcsPropertiesProcessor
@Nullable PropertiesProcessor getVcsPropertiesProcessor()
Validator for the version control settings as displayed on configuration page for the VCS root.- Returns:
- - properties validator
- See Also:
AbstractVcsPropertiesProcessor
-
getVcsSettingsJspFilePath
@NotNull String getVcsSettingsJspFilePath()
Version control settings editor page.- Returns:
- path to configuration jsp page
-
describeVcsRoot
@NotNull String describeVcsRoot(@NotNull VcsRoot vcsRoot)
Returns presentable text describing specified vcs root, for example: svn: http://www.somehost.com/project/- Parameters:
vcsRoot
- vcs root to describe- Returns:
- vcs root description
-
getDefaultVcsProperties
@Nullable Map<String,String> getDefaultVcsProperties()
Returns default VCS property values.- Returns:
- default configuration values
-
getCheckoutProperties
@NotNull default Map<String,String> getCheckoutProperties(@NotNull VcsRoot root) throws VcsException
Must return a map of vcs root properties significant for checkout operation. If a property is not returned in the map, TeamCity will ignore change in this property for given VCS root. For example, if a property changed and this property is significant for checkout, TeamCity will perform clean checkout. In other words, plugin must return those properties whose change can affect source code on agent. Properties returned by this method also affect checkout directory name on agent. Default implementation inServerVcsSupport
returns all non-secure properties.- Parameters:
root
- VCS root of interest- Returns:
- see above
- Throws:
VcsException
- if properties cannot be calculated- Since:
- 7.1
-
getServerCheckoutProperties
@NotNull default Map<String,String> getServerCheckoutProperties(@NotNull VcsRoot root) throws VcsException
This method is used to calculate caching key for VCSEntries when checkout on server mode is used. Affects:- Server side patch caching key
- Hash code for checkout directory name calculation with server-side checkout
- Parameters:
root
- VCS root of interest- Returns:
- see above
- Throws:
VcsException
- if properties cannot be calculated- Since:
- 9.0
-
getVersionDisplayName
@Nullable String getVersionDisplayName(@NotNull String version, @NotNull VcsRoot root) throws VcsException
Returns readable presentation of version (this format should be the same as DisplayVersion of VcsModification)- Parameters:
version
- version in internal formatroot
- root to get version display name for.- Returns:
- display format of repository version
- Throws:
VcsException
- some problem with version control server occurred.
-
getVersionComparator
@NotNull Comparator<String> getVersionComparator()
Returns comparator which allows to sort modifications by their version. Latest modification in the sorted collection should be latest modification made in the repository.- Returns:
- comparator of two repository versions, both versions were got from VcsModification.getVersion, specific for this support.
- See Also:
Service comparator for dates
,service comparator for integer versions
,service comparator for string versions
-
isAgentSideCheckoutAvailable
default boolean isAgentSideCheckoutAvailable()
- Returns:
- boolean value indicating agent side checkout ability support
-
isDAGBased
default boolean isDAGBased(@NotNull VcsRoot root)
- Parameters:
root
- corresponding VCS Root- Returns:
- true if given VCS Root is DAG-based
- Since:
- 10.0
-
isDAGBasedVcs
default boolean isDAGBasedVcs()
Deprecated.Not used anymore since 10.0, useisDAGBased(VcsRoot)
to provide actual implementation- Returns:
- true if VCS is DAG-based
-
-