Class RemoteRunBranchSpecProvider
- java.lang.Object
-
- jetbrains.buildServer.buildTriggers.vcs.remoteRun.RemoteRunBranchSpecProvider
-
- All Implemented Interfaces:
BranchSpecProvider
,ServerExtension
,TeamCityExtension
public class RemoteRunBranchSpecProvider extends Object implements BranchSpecProvider
-
-
Constructor Summary
Constructors Constructor Description RemoteRunBranchSpecProvider(UserModel userManager, RemoteRunBranchTriggerCache cache, ServerResponsibility serverResponsibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getBranchesForChangesCollecting(BuildTypeEx buildType, VcsRootInstance root, VcsRepositoryState state)
Called during collecting changes for the VCS root.Set<String>
getBranchSpecs(BuildTypeEx buildType, VcsRootInstance root, VcsRepositoryState state)
Called to calculate logical branch name from vcs branch name.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.BranchSpecProvider
includeIntoOwnBranchSpecsOf
-
-
-
-
Constructor Detail
-
RemoteRunBranchSpecProvider
public RemoteRunBranchSpecProvider(@NotNull UserModel userManager, @NotNull RemoteRunBranchTriggerCache cache, @NotNull ServerResponsibility serverResponsibility)
-
-
Method Detail
-
getBranchesForChangesCollecting
@NotNull public Set<String> getBranchesForChangesCollecting(@NotNull BuildTypeEx buildType, @NotNull VcsRootInstance root, @NotNull VcsRepositoryState state)
Description copied from interface:BranchSpecProvider
Called during collecting changes for the VCS root. Should return additional branches where changes should be collected.- Specified by:
getBranchesForChangesCollecting
in interfaceBranchSpecProvider
- Parameters:
buildType
- buildType of interestroot
- VCS root of intereststate
- full unfiltered current state of vcs root- Returns:
- see above
-
getBranchSpecs
@NotNull public Set<String> getBranchSpecs(@NotNull BuildTypeEx buildType, @NotNull VcsRootInstance root, @NotNull VcsRepositoryState state)
Description copied from interface:BranchSpecProvider
Called to calculate logical branch name from vcs branch name. Should return additional patterns for given buildType, VCS root and the state of the root.- Specified by:
getBranchSpecs
in interfaceBranchSpecProvider
- Parameters:
buildType
- buildType of interestroot
- VCS root of intereststate
- state of vcs root, state can be incomplete, e.g. contain a single branch of interest- Returns:
- see above
-
-