Class ConverterResult

java.lang.Object
io.jenkins.plugins.todeclarative.converter.api.ConverterResult

public class ConverterResult extends Object
Result of a conversion of a Job to a declarative pipeline model ModelASTPipelineDef A successful conversion can have some warnings
  • 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

      public List<Class> getConvertedTypes()
    • addConvertedType

      public void addConvertedType(Class typeClass)
    • getWarnings

      public List<Warning> getWarnings()
    • addWarning

      public void addWarning(Warning warning)