java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.parser.Converter
All Implemented Interfaces:
groovy.lang.GroovyObject

public class Converter extends Object implements groovy.lang.GroovyObject
  • Constructor Details

    • Converter

      public Converter()
  • Method Details

    • urlToPipelineDef

      public static org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef urlToPipelineDef(URL src)
    • scriptToPipelineDef

      public static org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef scriptToPipelineDef(String script)
    • compilationUnitToPipelineDef

      public static org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef compilationUnitToPipelineDef(org.codehaus.groovy.control.CompilationUnit cu)
    • scriptToPlainSteps

      public static List<org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep> scriptToPlainSteps(String script)
    • getMetaClass

      public groovy.lang.MetaClass getMetaClass()
      Specified by:
      getMetaClass in interface groovy.lang.GroovyObject
    • setMetaClass

      public void setMetaClass(groovy.lang.MetaClass mc)
      Specified by:
      setMetaClass in interface groovy.lang.GroovyObject
    • invokeMethod

      public Object invokeMethod(String method, Object arguments)
      Specified by:
      invokeMethod in interface groovy.lang.GroovyObject
    • getProperty

      public Object getProperty(String property)
      Specified by:
      getProperty in interface groovy.lang.GroovyObject
    • setProperty

      public void setProperty(String property, Object value)
      Specified by:
      setProperty in interface groovy.lang.GroovyObject
    • getPIPELINE_SCRIPT_NAME

      public static String getPIPELINE_SCRIPT_NAME()
    • validateJSONAgainstSchema

      public static com.github.fge.jsonschema.core.report.ProcessingReport validateJSONAgainstSchema(net.sf.json.JSONObject origJson) throws com.github.fge.jsonschema.core.exceptions.ProcessingException
      Throws:
      com.github.fge.jsonschema.core.exceptions.ProcessingException
    • validateJSONAgainstSchema

      public static com.github.fge.jsonschema.core.report.ProcessingReport validateJSONAgainstSchema(com.fasterxml.jackson.databind.JsonNode jsonNode) throws com.github.fge.jsonschema.core.exceptions.ProcessingException
      Throws:
      com.github.fge.jsonschema.core.exceptions.ProcessingException
    • jacksonJSONFromJSONObject

      public static com.fasterxml.jackson.databind.JsonNode jacksonJSONFromJSONObject(net.sf.json.JSONObject input)
    • jsonTreeFromJSONObject

      public static com.github.fge.jsonschema.core.tree.JsonTree jsonTreeFromJSONObject(net.sf.json.JSONObject input)
    • urlToPipelineDef

      public static org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef urlToPipelineDef(URL src, List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators)
    • getCompilationClassLoader

      public static groovy.lang.GroovyClassLoader getCompilationClassLoader()
    • scriptToPipelineDef

      public static org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef scriptToPipelineDef(String script, List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators)
    • makeCompilerConfiguration

      public static org.codehaus.groovy.control.CompilerConfiguration makeCompilerConfiguration()
    • compilationUnitToPipelineDef

      public static org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef compilationUnitToPipelineDef(org.codehaus.groovy.control.CompilationUnit cu, List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators)
    • scriptToPlainSteps

      public static List<org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep> scriptToPlainSteps(String script, List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators)