Class ConverterResult
java.lang.Object
io.jenkins.plugins.todeclarative.converter.api.ConverterResult
Result of a conversion of a
Job
to a declarative pipeline model ModelASTPipelineDef
A successful conversion can have some warnings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConvertedType
(Class typeClass) void
addWarning
(Warning warning) void
addWrappingTreeStep
(Supplier<org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTreeStep> treeStep) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef
modelASTPipelineDef
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef modelASTPipelineDef) void
setModelASTPipelineDef
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef modelASTPipelineDef)
-
Constructor Details
-
ConverterResult
public ConverterResult()
-
-
Method Details
-
getModelASTPipelineDef
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef getModelASTPipelineDef() -
setModelASTPipelineDef
public void setModelASTPipelineDef(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef modelASTPipelineDef) -
modelASTPipelineDef
public ConverterResult modelASTPipelineDef(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef modelASTPipelineDef) -
addWrappingTreeStep
public void addWrappingTreeStep(Supplier<org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTreeStep> treeStep) -
getWrappingTreeSteps
public List<Supplier<org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTreeStep>> getWrappingTreeSteps()- Returns:
- List of
ModelASTTreeStep
can be a Tree of withCredential, configFileProvider etc.. everything which need to wrap around builders
-
getConvertedTypes
-
addConvertedType
-
getWarnings
-
addWarning
-