Class Converter
java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.parser.Converter
- All Implemented Interfaces:
groovy.lang.GroovyObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef
compilationUnitToPipelineDef
(org.codehaus.groovy.control.CompilationUnit cu) 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) static groovy.lang.GroovyClassLoader
groovy.lang.MetaClass
static String
getProperty
(String property) invokeMethod
(String method, Object arguments) static com.fasterxml.jackson.databind.JsonNode
jacksonJSONFromJSONObject
(net.sf.json.JSONObject input) static com.github.fge.jsonschema.core.tree.JsonTree
jsonTreeFromJSONObject
(net.sf.json.JSONObject input) static org.codehaus.groovy.control.CompilerConfiguration
static org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef
scriptToPipelineDef
(String script) static org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef
scriptToPipelineDef
(String script, List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators) static List<org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep>
scriptToPlainSteps
(String script) static List<org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep>
scriptToPlainSteps
(String script, List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators) void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value) static org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef
urlToPipelineDef
(URL src) static org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef
urlToPipelineDef
(URL src, List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators) static com.github.fge.jsonschema.core.report.ProcessingReport
validateJSONAgainstSchema
(com.fasterxml.jackson.databind.JsonNode jsonNode) static com.github.fge.jsonschema.core.report.ProcessingReport
validateJSONAgainstSchema
(net.sf.json.JSONObject origJson)
-
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
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
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
-
getCompilationClassLoader
public static groovy.lang.GroovyClassLoader getCompilationClassLoader() -
scriptToPipelineDef
-
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
-