Class AutoGeneratedPipelineRunnerGenerator
- java.lang.Object
-
- jetbrains.buildServer.pipeline.impl.runner.AutoGeneratedPipelineRunnerGenerator
-
- All Implemented Interfaces:
PipelineRunnerGenerator
,ServerExtension
,TeamCityExtension
- Direct Known Subclasses:
PipelineCommandLineRunnerGenerator
,PipelineGradleRunnerGenerator
,PipelineMavenRunnerGenerator
,PipelineNodeJSRunnerGenerator
,PipelinePythonRunnerGenerator
,PipelineUnityRunnerGenerator
public class AutoGeneratedPipelineRunnerGenerator extends Object implements PipelineRunnerGenerator
Base class for PipelineRunnerGenerator. Main purpose is:
1. Allow adding new runner types to Pipelines without code changes.
2. Unify the source-of-truth, avoid code duplication.
3. Validation support
Typical usage:{@code
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.pipeline.PipelineRunnerGenerator
PipelineRunnerGenerator.PipelineRunner
-
-
Constructor Summary
Constructors Constructor Description AutoGeneratedPipelineRunnerGenerator(String xmlLocation, List<String> addonLocations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PipelineRunnerGenerator.PipelineRunner
generate(Map<String,String> parameters)
List<DslAddOn>
getAddons()
List<String>
getAddonsXmlContents()
KotlinDslExtension
getKotlinDslExtension()
String
getType()
String
getXmlContent()
-
-
-
Method Detail
-
getType
@NotNull public String getType()
- Specified by:
getType
in interfacePipelineRunnerGenerator
-
generate
@NotNull public PipelineRunnerGenerator.PipelineRunner generate(@NotNull Map<String,String> parameters)
- Specified by:
generate
in interfacePipelineRunnerGenerator
-
getXmlContent
@NotNull public String getXmlContent()
- Specified by:
getXmlContent
in interfacePipelineRunnerGenerator
-
getAddonsXmlContents
@NotNull public List<String> getAddonsXmlContents()
- Specified by:
getAddonsXmlContents
in interfacePipelineRunnerGenerator
-
getKotlinDslExtension
@NotNull public KotlinDslExtension getKotlinDslExtension()
- Specified by:
getKotlinDslExtension
in interfacePipelineRunnerGenerator
-
getAddons
@NotNull public List<DslAddOn> getAddons()
- Specified by:
getAddons
in interfacePipelineRunnerGenerator
-
-