Class MockBranchSupport
- java.lang.Object
-
- jetbrains.buildServer.vcs.ServerVcsSupport
-
- jetbrains.buildServer.serverSide.impl.MockVcsSupport
-
- jetbrains.buildServer.serverSide.impl.MockBranchSupport
-
- All Implemented Interfaces:
BranchSupport
,BuildPatchByCheckoutRules
,BuildPatchPolicy
,CollectChangesPolicy
,CollectSingleStateChangesByCheckoutRules
,CollectSingleStatePolicy
,TestConnectionSupport
,UrlSupport
,VcsExtension
,VcsFileContentProvider
,VcsRootIdentityProvider
,VcsSupportConfig
,VcsSupportContext
,VcsSupportCore
,VcsGenericService
,VcsService
public class MockBranchSupport extends MockVcsSupport implements BranchSupport
- Author:
- dmitry.neverov
-
-
Constructor Summary
Constructors Constructor Description MockBranchSupport(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRemoteRunOnBranchPattern()
Returns pattern to recognize branches for remote-run-on-branch trigger.protected <T extends VcsExtension>
TgetVcsCustomExtension(Class<T> extensionClass)
void
setRemoteRunOnBranchPattern(String remoteRunOnBranchPattern)
-
Methods inherited from class jetbrains.buildServer.serverSide.impl.MockVcsSupport
addChange, addChange, addChange, addChangeSetCurrentVersion, addCustomVcsExtension, allowSourceCaching, buildPatch, clearRequestedChangesVersions, clearRequestedPathVersions, collectChanges, convertToVcsRootProperties, describeVcsRoot, getBuildPatchPolicy, getCollectChangesPolicy, getContent, getContent, getContentProvider, getCurrentVersion, getDefaultBranchName, getDefaultVcsProperties, getDisplayName, getLabelingSupport, getName, getRequestedChangesVersions, getRequestedPatchVersions, getRootId, getTestConnectionSupport, getUrl2PropsMap, getUrlSupport, getVcsPropertiesProcessor, getVcsRootIdentity, getVcsSettingsJspFilePath, getVersionComparator, getVersionDisplayName, isAgentSideCheckoutAvailable, isCurrentVersionExpensive, isDAGBasedVcs, isTestConnectionSupported, resetChanges, setAgentSideCheckoutAvailable, setCollectChangesPolicy, setContent, setCurrentVersion, setDAGBased, setDisplayName, setIgnoreServerCaches, setSourcesUpdatePossibleIfChangesNotFound, sourcesUpdatePossibleIfChangesNotFound, testConnection, toString
-
Methods inherited from class jetbrains.buildServer.vcs.ServerVcsSupport
getCore, getVcsExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.vcs.VcsSupportConfig
getCheckoutProperties, getServerCheckoutProperties, isDAGBased
-
Methods inherited from interface jetbrains.buildServer.vcs.VcsSupportContext
getListFilesPolicy, getPersonalSupport
-
-
-
-
Constructor Detail
-
MockBranchSupport
public MockBranchSupport(String name)
-
-
Method Detail
-
getRemoteRunOnBranchPattern
@NotNull public String getRemoteRunOnBranchPattern()
Description copied from interface:BranchSupport
Returns pattern to recognize branches for remote-run-on-branch trigger. Pattern should contain a placeholder {teamcity.user}, e.g. remote-run/{teamcity.user}/.+ . Changes in branches with names matched by pattern will trigger a personal build.- Specified by:
getRemoteRunOnBranchPattern
in interfaceBranchSupport
- Returns:
- see above
-
setRemoteRunOnBranchPattern
public void setRemoteRunOnBranchPattern(String remoteRunOnBranchPattern)
-
getVcsCustomExtension
protected <T extends VcsExtension> T getVcsCustomExtension(@NotNull Class<T> extensionClass)
- Overrides:
getVcsCustomExtension
in classMockVcsSupport
-
-