Package jetbrains.buildServer.vcs
Interface UrlSupport
-
- All Superinterfaces:
VcsExtension
,VcsGenericService
- All Known Implementing Classes:
MockBranchSupport
,MockVcsSupport
public interface UrlSupport extends VcsExtension, VcsGenericService
API for VCS URL recognition. Allows creating VCS Roots from URLs.- Since:
- 8.1
See also
ContextAwareUrlSupport
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>
convertToVcsRootProperties(VcsUrl url)
Converts the given url to a set of VCS root properties valid enough for creating a VCS root.
-
-
-
Method Detail
-
convertToVcsRootProperties
@Nullable Map<String,String> convertToVcsRootProperties(@NotNull VcsUrl url) throws VcsException
Converts the given url to a set of VCS root properties valid enough for creating a VCS root.- Parameters:
url
- url to repository with optional credentials- Returns:
- the VCS root properties if url belongs to this VCS plugin or null if it does not belong
- Throws:
VcsException
- if URL looks like related to VCS plugin, but properties could not be created because of some problems
-
-