Class BuildRunnerDescriptorFactoryImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.BuildRunnerDescriptorFactoryImpl
-
- All Implemented Interfaces:
BuildRunnerDescriptorFactory
public class BuildRunnerDescriptorFactoryImpl extends Object implements BuildRunnerDescriptorFactory
-
-
Constructor Summary
Constructors Constructor Description BuildRunnerDescriptorFactoryImpl(IdGeneratorRegistry generatorRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SBuildRunnerDescriptor
createBuildRunner(SProject project, String id, String name, String runnerType, Map<String,String> runnerParameters)
Creates new build runner descriptor with specified id and paramsSBuildRunnerDescriptor
createBuildRunner(SProject project, String id, String name, String runnerType, Map<String,String> runnerParameters, Map<String,String> buildParameters)
Creates new build runner descriptor with specified id and paramsSBuildRunnerDescriptor
createBuildRunner(SProject project, BuildRunnerDescriptor descriptor)
created a copy of givenSBuildRunnerDescriptor
with substituted settingsSBuildRunnerDescriptor
createBuildRunner(SProject project, BuildRunnerDescriptor descriptor, Map<String,String> runnerParameters, Map<String,String> buildParameters)
created a copy of givenSBuildRunnerDescriptor
with substituted settingsSBuildRunnerDescriptor
createNewBuildRunner(SProject project, String name, String runnerType, Map<String,String> runnerParameters)
Creates newSBuildRunnerDescriptor
SBuildRunnerDescriptor
createNewBuildRunner(SProject project, String name, String runnerType, Map<String,String> runnerParameters, Map<String,String> buildParameters)
Creates newSBuildRunnerDescriptor
String
newId()
void
setRunTypeRegistry(RunTypePerProjectRegistry runTypeRegistry)
-
-
-
Constructor Detail
-
BuildRunnerDescriptorFactoryImpl
public BuildRunnerDescriptorFactoryImpl(@NotNull IdGeneratorRegistry generatorRegistry)
-
-
Method Detail
-
setRunTypeRegistry
public void setRunTypeRegistry(RunTypePerProjectRegistry runTypeRegistry)
-
createBuildRunner
@NotNull public SBuildRunnerDescriptor createBuildRunner(@NotNull SProject project, @NotNull String id, @NotNull String name, @NotNull String runnerType, @NotNull Map<String,String> runnerParameters, @NotNull Map<String,String> buildParameters) throws InvalidIdentifierException
Description copied from interface:BuildRunnerDescriptorFactory
Creates new build runner descriptor with specified id and params- Specified by:
createBuildRunner
in interfaceBuildRunnerDescriptorFactory
id
- id of the runner settingsname
- runner settings namerunnerType
- type of the runnerrunnerParameters
- parameters of the runnerbuildParameters
- build parameters parameters of the runner- Returns:
- new build runner descriptor
- Throws:
InvalidIdentifierException
-
createNewBuildRunner
@NotNull public SBuildRunnerDescriptor createNewBuildRunner(@NotNull SProject project, @NotNull String name, @NotNull String runnerType, @NotNull Map<String,String> runnerParameters, @NotNull Map<String,String> buildParameters)
Description copied from interface:BuildRunnerDescriptorFactory
Creates newSBuildRunnerDescriptor
- Specified by:
createNewBuildRunner
in interfaceBuildRunnerDescriptorFactory
name
- runner settings namerunnerType
- type of the runnerrunnerParameters
- parameters of the runnerbuildParameters
- build parameters of the runner- Returns:
- newly created
SBuildRunnerDescriptor
-
createBuildRunner
@NotNull public SBuildRunnerDescriptor createBuildRunner(@NotNull SProject project, @NotNull String id, @NotNull String name, @NotNull String runnerType, @NotNull Map<String,String> runnerParameters) throws InvalidIdentifierException
Description copied from interface:BuildRunnerDescriptorFactory
Creates new build runner descriptor with specified id and params- Specified by:
createBuildRunner
in interfaceBuildRunnerDescriptorFactory
id
- id of the runner settingsname
- runner settings namerunnerType
- type of the runnerrunnerParameters
- parameters of the runner- Returns:
- new build runner descriptor
- Throws:
InvalidIdentifierException
-
createNewBuildRunner
@NotNull public SBuildRunnerDescriptor createNewBuildRunner(@NotNull SProject project, @NotNull String name, @NotNull String runnerType, @NotNull Map<String,String> runnerParameters)
Description copied from interface:BuildRunnerDescriptorFactory
Creates newSBuildRunnerDescriptor
- Specified by:
createNewBuildRunner
in interfaceBuildRunnerDescriptorFactory
name
- runner settings namerunnerType
- type of the runnerrunnerParameters
- parameters of the runner- Returns:
- newly created
SBuildRunnerDescriptor
-
createBuildRunner
@NotNull public SBuildRunnerDescriptor createBuildRunner(@NotNull SProject project, @NotNull BuildRunnerDescriptor descriptor, @NotNull Map<String,String> runnerParameters, @NotNull Map<String,String> buildParameters) throws InvalidIdentifierException
Description copied from interface:BuildRunnerDescriptorFactory
created a copy of givenSBuildRunnerDescriptor
with substituted settings- Specified by:
createBuildRunner
in interfaceBuildRunnerDescriptorFactory
descriptor
- build runner descriptorrunnerParameters
- runner parametersbuildParameters
- build parameters- Returns:
- resolved parameters
- Throws:
InvalidIdentifierException
-
createBuildRunner
@NotNull public SBuildRunnerDescriptor createBuildRunner(@NotNull SProject project, @NotNull BuildRunnerDescriptor descriptor) throws InvalidIdentifierException
Description copied from interface:BuildRunnerDescriptorFactory
created a copy of givenSBuildRunnerDescriptor
with substituted settings- Specified by:
createBuildRunner
in interfaceBuildRunnerDescriptorFactory
descriptor
- build runner descriptor- Returns:
- resolved parameters
- Throws:
InvalidIdentifierException
-
newId
public String newId()
-
-