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 SBuildRunnerDescriptorcreateBuildRunner(SProject project, String id, String name, String runnerType, Map<String,String> runnerParameters)Creates new build runner descriptor with specified id and paramsSBuildRunnerDescriptorcreateBuildRunner(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 paramsSBuildRunnerDescriptorcreateBuildRunner(SProject project, BuildRunnerDescriptor descriptor)created a copy of givenSBuildRunnerDescriptorwith substituted settingsSBuildRunnerDescriptorcreateBuildRunner(SProject project, BuildRunnerDescriptor descriptor, Map<String,String> runnerParameters, Map<String,String> buildParameters)created a copy of givenSBuildRunnerDescriptorwith substituted settingsSBuildRunnerDescriptorcreateNewBuildRunner(SProject project, String name, String runnerType, Map<String,String> runnerParameters)Creates newSBuildRunnerDescriptorSBuildRunnerDescriptorcreateNewBuildRunner(SProject project, String name, String runnerType, Map<String,String> runnerParameters, Map<String,String> buildParameters)Creates newSBuildRunnerDescriptorStringnewId()voidsetRunTypeRegistry(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:BuildRunnerDescriptorFactoryCreates new build runner descriptor with specified id and params- Specified by:
createBuildRunnerin interfaceBuildRunnerDescriptorFactoryid- 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:BuildRunnerDescriptorFactoryCreates newSBuildRunnerDescriptor- Specified by:
createNewBuildRunnerin interfaceBuildRunnerDescriptorFactoryname- 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:BuildRunnerDescriptorFactoryCreates new build runner descriptor with specified id and params- Specified by:
createBuildRunnerin interfaceBuildRunnerDescriptorFactoryid- 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:BuildRunnerDescriptorFactoryCreates newSBuildRunnerDescriptor- Specified by:
createNewBuildRunnerin interfaceBuildRunnerDescriptorFactoryname- 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:BuildRunnerDescriptorFactorycreated a copy of givenSBuildRunnerDescriptorwith substituted settings- Specified by:
createBuildRunnerin interfaceBuildRunnerDescriptorFactorydescriptor- 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:BuildRunnerDescriptorFactorycreated a copy of givenSBuildRunnerDescriptorwith substituted settings- Specified by:
createBuildRunnerin interfaceBuildRunnerDescriptorFactorydescriptor- build runner descriptor- Returns:
- resolved parameters
- Throws:
InvalidIdentifierException
-
newId
public String newId()
-
-